Class: MoneyS3::Parsers::Valuty2
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::Valuty2
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/valuty2.rb
Instance Method Summary collapse
Instance Method Details
#celkem ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/valuty2.rb', line 14 def celkem at 'Celkem' end |
#celkem_attributes ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/valuty2.rb', line 18 def celkem_attributes attributes_at 'Celkem' end |
#mena ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/valuty2.rb', line 6 def mena submodel_at(MenaType, 'Mena') end |
#souhrn_dph ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/valuty2.rb', line 10 def souhrn_dph submodel_at(SouhrnDPHType, 'SouhrnDPH') end |
#to_h ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/money_s3/parsers/valuty2.rb', line 22 def to_h hash = {} hash[:attributes] = attributes hash[:mena] = mena.to_h if has? 'Mena' hash[:souhrn_dph] = souhrn_dph.to_h if has? 'SouhrnDPH' hash[:celkem] = celkem if has? 'Celkem' hash[:celkem_attributes] = celkem_attributes if has? 'Celkem' hash end |