Class: MoneyS3::Parsers::StavZasobyType
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::StavZasobyType
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/stav_zasoby_type.rb
Instance Method Summary collapse
- #objednano ⇒ Object
- #objednano_attributes ⇒ Object
- #rezervace ⇒ Object
- #rezervace_attributes ⇒ Object
- #to_h ⇒ Object
- #zasoba ⇒ Object
- #zasoba_attributes ⇒ Object
Instance Method Details
#objednano ⇒ Object
22 23 24 |
# File 'lib/money_s3/parsers/stav_zasoby_type.rb', line 22 def objednano at 'Objednano' end |
#objednano_attributes ⇒ Object
26 27 28 |
# File 'lib/money_s3/parsers/stav_zasoby_type.rb', line 26 def objednano_attributes attributes_at 'Objednano' end |
#rezervace ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/stav_zasoby_type.rb', line 14 def rezervace at 'Rezervace' end |
#rezervace_attributes ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/stav_zasoby_type.rb', line 18 def rezervace_attributes attributes_at 'Rezervace' end |
#to_h ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/money_s3/parsers/stav_zasoby_type.rb', line 30 def to_h hash = {} hash[:attributes] = attributes hash[:zasoba] = zasoba if has? 'Zasoba' hash[:zasoba_attributes] = zasoba_attributes if has? 'Zasoba' hash[:rezervace] = rezervace if has? 'Rezervace' hash[:rezervace_attributes] = rezervace_attributes if has? 'Rezervace' hash[:objednano] = objednano if has? 'Objednano' hash[:objednano_attributes] = objednano_attributes if has? 'Objednano' hash end |
#zasoba ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/stav_zasoby_type.rb', line 6 def zasoba at 'Zasoba' end |
#zasoba_attributes ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/stav_zasoby_type.rb', line 10 def zasoba_attributes attributes_at 'Zasoba' end |