Class: Exlibris::Aleph::API::Client::Patron::Record::Item::CreateHold

Inherits:
Hold
  • Object
show all
Defined in:
lib/exlibris/aleph/api/client/patron/record/item/create_hold.rb,
lib/exlibris/aleph/api/client/patron/record/item/create_hold/parameters.rb

Defined Under Namespace

Classes: Parameters

Constant Summary

Constants inherited from Base

Base::DEFAULT_REQUEST_METHOD, Base::VALID_VIEWS

Instance Attribute Summary collapse

Attributes inherited from Hold

#item_id, #patron_id, #record_id

Attributes inherited from Base

#query

Instance Method Summary collapse

Methods inherited from Base

#error?, #reply_code, #reply_text, #root, #to_h, #to_xml

Constructor Details

#initialize(*args, parameters) ⇒ CreateHold

Returns a new instance of CreateHold.



11
12
13
14
15
16
17
18
# File 'lib/exlibris/aleph/api/client/patron/record/item/create_hold.rb', line 11

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

Instance Attribute Details

#parametersObject (readonly)

Returns the value of attribute parameters.



9
10
11
# File 'lib/exlibris/aleph/api/client/patron/record/item/create_hold.rb', line 9

def parameters
  @parameters
end