Class: MoneyS3::Parsers::MenaType
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::MenaType
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/mena_type.rb
Instance Method Summary collapse
- #kod ⇒ Object
- #kod_attributes ⇒ Object
- #kurs ⇒ Object
- #kurs_attributes ⇒ Object
- #mnozstvi ⇒ Object
- #mnozstvi_attributes ⇒ Object
- #to_h ⇒ Object
Instance Method Details
#kod ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/mena_type.rb', line 6 def kod at 'Kod' end |
#kod_attributes ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/mena_type.rb', line 10 def kod_attributes attributes_at 'Kod' end |
#kurs ⇒ Object
22 23 24 |
# File 'lib/money_s3/parsers/mena_type.rb', line 22 def kurs at 'Kurs' end |
#kurs_attributes ⇒ Object
26 27 28 |
# File 'lib/money_s3/parsers/mena_type.rb', line 26 def kurs_attributes attributes_at 'Kurs' end |
#mnozstvi ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/mena_type.rb', line 14 def mnozstvi at 'Mnozstvi' end |
#mnozstvi_attributes ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/mena_type.rb', line 18 def mnozstvi_attributes attributes_at 'Mnozstvi' end |
#to_h ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/money_s3/parsers/mena_type.rb', line 30 def to_h hash = {} hash[:attributes] = attributes hash[:kod] = kod if has? 'Kod' hash[:kod_attributes] = kod_attributes if has? 'Kod' hash[:mnozstvi] = mnozstvi if has? 'Mnozstvi' hash[:mnozstvi_attributes] = mnozstvi_attributes if has? 'Mnozstvi' hash[:kurs] = kurs if has? 'Kurs' hash[:kurs_attributes] = kurs_attributes if has? 'Kurs' hash end |