Sha256: 8d6f84c6ae08d64a9752ab2a0bee54175c88fc4502096359f50ddfe4cf9593a8

Contents?: true

Size: 792 Bytes

Versions: 3

Compression:

Stored size: 792 Bytes

Contents

module Exlibris
  module Aleph
    module API
      module Client
        class Patron
          class Record
            class Item
              class CreateHold < Hold
                attr_reader :parameters

                def initialize(*args, parameters)
                  unless parameters.is_a?(Parameters)
                    raise ArgumentError.new("Expecting #{parameters} to be a Parameters")
                  end
                  @parameters = parameters
                  @request_method = :put
                  super(*args)
                end

                private
                def put
                  connection.put(path, "post_xml=#{parameters.to_xml}")
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exlibris-aleph-2.0.4 lib/exlibris/aleph/api/client/patron/record/item/create_hold.rb
exlibris-aleph-2.0.3 lib/exlibris/aleph/api/client/patron/record/item/create_hold.rb
exlibris-aleph-2.0.0 lib/exlibris/aleph/api/client/patron/record/item/create_hold.rb