Class: SaltParser::Accounts

Inherits:
Array
  • Object
show all
Defined in:
lib/salt-parser/accounts.rb

Direct Known Subclasses

Ofx::Accounts, Qif::Accounts, Swift::Accounts

Instance Method Summary collapse

Instance Method Details

#find(identifier) ⇒ Object



3
4
5
# File 'lib/salt-parser/accounts.rb', line 3

def find(identifier)
  detect { || .identifier == identifier }
end

#to_hashObject



7
8
9
# File 'lib/salt-parser/accounts.rb', line 7

def to_hash
  map { || .to_hash }
end