Class: SchwabRb::DataObjects::AccountNumbers::AccountNumber

Inherits:
Object
  • Object
show all
Defined in:
lib/schwab_rb/data_objects/account_numbers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numberObject (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
end

#hash_valueObject (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_hObject



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