Class: SchwabRb::DataObjects::AccountNumbers::AccountNumber
- Inherits:
-
Object
- Object
- SchwabRb::DataObjects::AccountNumbers::AccountNumber
- Defined in:
- lib/schwab_rb/data_objects/account_numbers.rb
Instance Attribute Summary collapse
-
#account_number ⇒ Object
readonly
Returns the value of attribute account_number.
-
#hash_value ⇒ Object
readonly
Returns the value of attribute hash_value.
Instance Method Summary collapse
-
#initialize(data) ⇒ AccountNumber
constructor
A new instance of AccountNumber.
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ AccountNumber
Returns a new instance of AccountNumber.
55 56 57 58 |
# File 'lib/schwab_rb/data_objects/account_numbers.rb', line 55 def initialize(data) @account_number = data[:accountNumber] @hash_value = data[:hashValue] end |
Instance Attribute Details
#account_number ⇒ Object (readonly)
Returns the value of attribute account_number.
53 54 55 |
# File 'lib/schwab_rb/data_objects/account_numbers.rb', line 53 def account_number @account_number end |
#hash_value ⇒ Object (readonly)
Returns the value of attribute hash_value.
53 54 55 |
# File 'lib/schwab_rb/data_objects/account_numbers.rb', line 53 def hash_value @hash_value end |
Instance Method Details
#to_h ⇒ Object
60 61 62 63 64 65 |
# File 'lib/schwab_rb/data_objects/account_numbers.rb', line 60 def to_h { accountNumber: @account_number, hashValue: @hash_value } end |