Class: Atrium::HoldingsApi

Inherits:
Object
  • Object
show all
Defined in:
lib/atrium-ruby/api/holdings_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_clientObject

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.

Parameters:

  • user_guid

    The unique identifier for a `user`.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    Specify current page.

  • :records_per_page (Integer)

    Specify records per page.

Returns:



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.

Parameters:

  • account_guid

    The unique identifier for an `account`.

  • user_guid

    The unique identifier for a `user`.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    Specify current page.

  • :records_per_page (Integer)

    Specify records per page.

Returns:



38
39
40
41
# File 'lib/atrium-ruby/api/holdings_api.rb', line 38

def (, user_guid, opts = {})
  data, _status_code, _headers = (, 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.

Parameters:

  • member_guid

    The unique identifier for a `member`.

  • user_guid

    The unique identifier for a `user`.

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    Specify current page.

  • :records_per_page (Integer)

    Specify records per page.

Returns:



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.

Parameters:

  • holding_guid

    The unique identifier for a `holding`.

  • user_guid

    The unique identifier for a `user`.

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



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