Class: InvestecOpenApi::Models::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/investec_open_api/models/account.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

convert_param_value_to_date, convert_param_value_to_money, #initialize, rewrite_param_key

Constructor Details

This class inherits a constructor from InvestecOpenApi::Models::Base

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/investec_open_api/models/account.rb', line 3

def id
  @id
end

#kyc_compliantObject (readonly)

Returns the value of attribute kyc_compliant.



3
4
5
# File 'lib/investec_open_api/models/account.rb', line 3

def kyc_compliant
  @kyc_compliant
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/investec_open_api/models/account.rb', line 3

def name
  @name
end

#numberObject (readonly)

Returns the value of attribute number.



3
4
5
# File 'lib/investec_open_api/models/account.rb', line 3

def number
  @number
end

#product_nameObject (readonly)

Returns the value of attribute product_name.



3
4
5
# File 'lib/investec_open_api/models/account.rb', line 3

def product_name
  @product_name
end

#profile_idObject (readonly)

Returns the value of attribute profile_id.



3
4
5
# File 'lib/investec_open_api/models/account.rb', line 3

def profile_id
  @profile_id
end

#profile_nameObject (readonly)

Returns the value of attribute profile_name.



3
4
5
# File 'lib/investec_open_api/models/account.rb', line 3

def profile_name
  @profile_name
end

#reference_nameObject (readonly)

Returns the value of attribute reference_name.



3
4
5
# File 'lib/investec_open_api/models/account.rb', line 3

def reference_name
  @reference_name
end

Class Method Details

.from_api(params = {}) ⇒ Object



12
13
14
15
16
17
# File 'lib/investec_open_api/models/account.rb', line 12

def self.from_api(params = {})
  rewrite_param_key(params, "accountId", "id")
  rewrite_param_key(params, "accountNumber", "number")
  rewrite_param_key(params, "accountName", "name")
  new params
end