Class: MoneyS3::Parsers::NepPlatbaType
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::NepPlatbaType
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/nep_platba_type.rb
Instance Method Summary collapse
- #castka ⇒ Object
- #castka_attributes ⇒ Object
- #mnozstvi_mj ⇒ Object
- #mnozstvi_mj_attributes ⇒ Object
- #platidlo ⇒ Object
- #to_h ⇒ Object
Instance Method Details
#castka ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/nep_platba_type.rb', line 18 def castka at 'Castka' end |
#castka_attributes ⇒ Object
22 23 24 |
# File 'lib/money_s3/parsers/nep_platba_type.rb', line 22 def castka_attributes attributes_at 'Castka' end |
#mnozstvi_mj ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/nep_platba_type.rb', line 10 def mnozstvi_mj at 'MnozstviMJ' end |
#mnozstvi_mj_attributes ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/nep_platba_type.rb', line 14 def mnozstvi_mj_attributes attributes_at 'MnozstviMJ' end |
#platidlo ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/nep_platba_type.rb', line 6 def platidlo submodel_at(NepPlatidloType, 'Platidlo') end |
#to_h ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/money_s3/parsers/nep_platba_type.rb', line 26 def to_h hash = {} hash[:attributes] = attributes hash[:platidlo] = platidlo.to_h if has? 'Platidlo' hash[:mnozstvi_mj] = mnozstvi_mj if has? 'MnozstviMJ' hash[:mnozstvi_mj_attributes] = mnozstvi_mj_attributes if has? 'MnozstviMJ' hash[:castka] = castka if has? 'Castka' hash[:castka_attributes] = castka_attributes if has? 'Castka' hash end |