Class: AlephApi::RestfulApiClient::Patron::CirculationActions
- Inherits:
-
Object
- Object
- AlephApi::RestfulApiClient::Patron::CirculationActions
show all
- Defined in:
- lib/aleph_api/restful_api_client/patron/circulation_actions.rb
Defined Under Namespace
Classes: Cash, Loans, Requests
Instance Method Summary
collapse
Constructor Details
Returns a new instance of CirculationActions.
8
9
10
11
|
# File 'lib/aleph_api/restful_api_client/patron/circulation_actions.rb', line 8
def initialize(client, patron_id)
@client = client
@patron_id = patron_id
end
|
Instance Method Details
#cash(cash_id = nil) ⇒ Object
19
20
21
|
# File 'lib/aleph_api/restful_api_client/patron/circulation_actions.rb', line 19
def cash(cash_id = nil)
Cash.new(@client, @patron_id, cash_id)
end
|
#get(options = {}) ⇒ Object
13
14
15
16
17
|
# File 'lib/aleph_api/restful_api_client/patron/circulation_actions.rb', line 13
def get(options = {})
@client.http(:get, "/patron/#{@patron_id}/circulationActions", options).try do |_response|
_response.body
end
end
|
#loans(loan_id = nil) ⇒ Object
23
24
25
|
# File 'lib/aleph_api/restful_api_client/patron/circulation_actions.rb', line 23
def loans(loan_id = nil)
Loans.new(@client, @patron_id, loan_id)
end
|
#requests ⇒ Object
27
28
29
|
# File 'lib/aleph_api/restful_api_client/patron/circulation_actions.rb', line 27
def requests
Requests.new(@client, @patron_id)
end
|