Class: MoneyS3::Parsers::InvDoklType
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::InvDoklType
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/inv_dokl_type.rb
Instance Method Summary collapse
- #cislo_d ⇒ Object
- #cislo_d_attributes ⇒ Object
- #inv_id ⇒ Object
- #inv_id_attributes ⇒ Object
- #kontr ⇒ Object
- #kontr_attributes ⇒ Object
- #polozka ⇒ Object
- #popis ⇒ Object
- #popis_attributes ⇒ Object
- #poznamka ⇒ Object
- #poznamka_attributes ⇒ Object
- #prac ⇒ Object
- #prac_attributes ⇒ Object
- #to_h ⇒ Object
Instance Method Details
#cislo_d ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 6 def cislo_d at 'CisloD' end |
#cislo_d_attributes ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 10 def cislo_d_attributes attributes_at 'CisloD' end |
#inv_id ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 14 def inv_id at 'InvID' end |
#inv_id_attributes ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 18 def inv_id_attributes attributes_at 'InvID' end |
#kontr ⇒ Object
38 39 40 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 38 def kontr at 'Kontr' end |
#kontr_attributes ⇒ Object
42 43 44 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 42 def kontr_attributes attributes_at 'Kontr' end |
#polozka ⇒ Object
54 55 56 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 54 def polozka array_of_at(PolInvDoklType, ['Polozka']) end |
#popis ⇒ Object
22 23 24 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 22 def popis at 'Popis' end |
#popis_attributes ⇒ Object
26 27 28 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 26 def popis_attributes attributes_at 'Popis' end |
#poznamka ⇒ Object
46 47 48 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 46 def poznamka at 'Poznamka' end |
#poznamka_attributes ⇒ Object
50 51 52 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 50 def poznamka_attributes attributes_at 'Poznamka' end |
#prac ⇒ Object
30 31 32 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 30 def prac at 'Prac' end |
#prac_attributes ⇒ Object
34 35 36 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 34 def prac_attributes attributes_at 'Prac' end |
#to_h ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/money_s3/parsers/inv_dokl_type.rb', line 58 def to_h hash = {} hash[:attributes] = attributes hash[:cislo_d] = cislo_d if has? 'CisloD' hash[:cislo_d_attributes] = cislo_d_attributes if has? 'CisloD' hash[:inv_id] = inv_id if has? 'InvID' hash[:inv_id_attributes] = inv_id_attributes if has? 'InvID' hash[:popis] = popis if has? 'Popis' hash[:popis_attributes] = popis_attributes if has? 'Popis' hash[:prac] = prac if has? 'Prac' hash[:prac_attributes] = prac_attributes if has? 'Prac' hash[:kontr] = kontr if has? 'Kontr' hash[:kontr_attributes] = kontr_attributes if has? 'Kontr' hash[:poznamka] = poznamka if has? 'Poznamka' hash[:poznamka_attributes] = poznamka_attributes if has? 'Poznamka' hash[:polozka] = polozka.map(&:to_h) if has? 'Polozka' hash end |