Class: OFX::Account
- Inherits:
-
Object
- Object
- OFX::Account
- Defined in:
- lib/ofx/account.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#transactions ⇒ Object
Returns the value of attribute transactions.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(ffi_account) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(ffi_account) ⇒ Account
Returns a new instance of Account.
6 7 8 9 10 11 |
# File 'lib/ofx/account.rb', line 6 def initialize(ffi_account) @number = ffi_account.account_number.to_s @type = ffi_account.account_type @transactions = [] end |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
3 4 5 |
# File 'lib/ofx/account.rb', line 3 def number @number end |
#transactions ⇒ Object
Returns the value of attribute transactions.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def transactions @transactions end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/ofx/account.rb', line 3 def type @type end |