Class: AlephApi::RestfulApiClient::Record
- Inherits:
-
Object
- Object
- AlephApi::RestfulApiClient::Record
- Defined in:
- lib/aleph_api/restful_api_client/record.rb
Defined Under Namespace
Classes: Items
Instance Method Summary collapse
- #get(options = {}) ⇒ Object
-
#initialize(client, record_id) ⇒ Record
constructor
A new instance of Record.
- #items(item_id = nil) ⇒ Object
Constructor Details
#initialize(client, record_id) ⇒ Record
Returns a new instance of Record.
6 7 8 9 |
# File 'lib/aleph_api/restful_api_client/record.rb', line 6 def initialize(client, record_id) @client = client @record_id = record_id end |
Instance Method Details
#get(options = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/aleph_api/restful_api_client/record.rb', line 11 def get( = {}) @client.http(:get, "/record/#{@record_id}", ).try do |_response| _response.body end end |