Class: SaltParser::Qif::Account

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SaltParser::Base

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/qif/account.rb', line 4

def name
  @name
end

#transactionsObject

Returns the value of attribute transactions.



4
5
6
# File 'lib/qif/account.rb', line 4

def transactions
  @transactions
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/qif/account.rb', line 4

def type
  @type
end

Instance Method Details

#identifierObject



6
7
8
# File 'lib/qif/account.rb', line 6

def identifier
  name
end

#to_hashObject



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