Class: Atrium::HoldingsApi
- Inherits:
-
Object
- Object
- Atrium::HoldingsApi
- Defined in:
- lib/atrium-ruby/api/holdings_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#initialize(api_client = ApiClient.default) ⇒ HoldingsApi
constructor
A new instance of HoldingsApi.
-
#list_holdings(user_guid, opts = {}) ⇒ HoldingsResponseBody
List holdings Use this endpoint to read all holdings associated with a specific user.
-
#list_holdings_by_account(account_guid, user_guid, opts = {}) ⇒ HoldingsResponseBody
List holdings by account Use this endpoint to read all holdings associated with a specific account.
-
#list_holdings_by_member(member_guid, user_guid, opts = {}) ⇒ HoldingsResponseBody
List holdings by member Use this endpoint to read all holdings associated with a specific member.
-
#read_holding(holding_guid, user_guid, opts = {}) ⇒ HoldingResponseBody
Read holding Use this endpoint to read the attributes of a specific holding.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ HoldingsApi
Returns a new instance of HoldingsApi.
15 16 17 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 15 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
13 14 15 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 13 def api_client @api_client end |
Instance Method Details
#list_holdings(user_guid, opts = {}) ⇒ HoldingsResponseBody
List holdings Use this endpoint to read all holdings associated with a specific user.
23 24 25 26 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 23 def list_holdings(user_guid, opts = {}) data, _status_code, _headers = list_holdings_with_http_info(user_guid, opts) data end |
#list_holdings_by_account(account_guid, user_guid, opts = {}) ⇒ HoldingsResponseBody
List holdings by account Use this endpoint to read all holdings associated with a specific account.
34 35 36 37 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 34 def list_holdings_by_account(account_guid, user_guid, opts = {}) data, _status_code, _headers = list_holdings_by_account_with_http_info(account_guid, user_guid, opts) data end |
#list_holdings_by_member(member_guid, user_guid, opts = {}) ⇒ HoldingsResponseBody
List holdings by member Use this endpoint to read all holdings associated with a specific member.
45 46 47 48 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 45 def list_holdings_by_member(member_guid, user_guid, opts = {}) data, _status_code, _headers = list_holdings_by_member_with_http_info(member_guid, user_guid, opts) data end |
#read_holding(holding_guid, user_guid, opts = {}) ⇒ HoldingResponseBody
Read holding Use this endpoint to read the attributes of a specific holding.
56 57 58 59 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 56 def read_holding(holding_guid, user_guid, opts = {}) data, _status_code, _headers = read_holding_with_http_info(holding_guid, user_guid, opts) data end |