Class: SaltParser::Qif::Account
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#transactions ⇒ Object
Returns the value of attribute transactions.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from SaltParser::Base
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/qif/account.rb', line 4 def name @name end |
#transactions ⇒ Object
Returns the value of attribute transactions.
4 5 6 |
# File 'lib/qif/account.rb', line 4 def transactions @transactions end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/qif/account.rb', line 4 def type @type end |
Instance Method Details
#identifier ⇒ Object
6 7 8 |
# File 'lib/qif/account.rb', line 6 def identifier name end |
#to_hash ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/qif/account.rb', line 10 def to_hash { :name => name, :type => type, :transactions => transactions.map(&:to_hash) } end |