Class: MoneyS3::Parsers::SeznamZasoba
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::SeznamZasoba
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/seznam_zasoba.rb
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/money_s3/parsers/seznam_zasoba.rb', line 10 def to_h hash = {} hash[:attributes] = attributes hash[:zasoba] = zasoba.map(&:to_h) if has? 'Zasoba' hash end |
#zasoba ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/seznam_zasoba.rb', line 6 def zasoba array_of_at(Zasoba, ['Zasoba']) end |