Class: SaltParser::Accounts
- Inherits:
-
Array
- Object
- Array
- SaltParser::Accounts
- Defined in:
- lib/salt-parser/accounts.rb
Direct Known Subclasses
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 { |account| account.identifier == identifier } end |
#to_hash ⇒ Object
7 8 9 |
# File 'lib/salt-parser/accounts.rb', line 7 def to_hash map { |account| account.to_hash } end |