class MoneyS3::Parsers::InvDoklType

Public Instance Methods

cislo_d() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 6
def cislo_d
  at 'CisloD'
end
cislo_d_attributes() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 10
def cislo_d_attributes
  attributes_at 'CisloD'
end
inv_id() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 14
def inv_id
  at 'InvID'
end
inv_id_attributes() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 18
def inv_id_attributes
  attributes_at 'InvID'
end
kontr() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 38
def kontr
  at 'Kontr'
end
kontr_attributes() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 42
def kontr_attributes
  attributes_at 'Kontr'
end
polozka() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 54
def polozka
  array_of_at(PolInvDoklType, ['Polozka'])
end
popis() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 22
def popis
  at 'Popis'
end
popis_attributes() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 26
def popis_attributes
  attributes_at 'Popis'
end
poznamka() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 46
def poznamka
  at 'Poznamka'
end
poznamka_attributes() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 50
def poznamka_attributes
  attributes_at 'Poznamka'
end
prac() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 30
def prac
  at 'Prac'
end
prac_attributes() click to toggle source
# File lib/money_s3/parsers/inv_dokl_type.rb, line 34
def prac_attributes
  attributes_at 'Prac'
end
to_h() click to toggle source
# 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