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.
25 26 27 28 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 25 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.
38 39 40 41 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 38 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.
51 52 53 54 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 51 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.
62 63 64 65 |
# File 'lib/atrium-ruby/api/holdings_api.rb', line 62 def read_holding(holding_guid, user_guid, opts = {}) data, _status_code, _headers = read_holding_with_http_info(holding_guid, user_guid, opts) data end |