class MoneyS3::Parsers::DoklRefType

Public Instance Methods

cislo_dokladu() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 14
def cislo_dokladu
  at 'CisloDokladu'
end
cislo_dokladu_attributes() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 18
def cislo_dokladu_attributes
  attributes_at 'CisloDokladu'
end
druh_dokladu() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 22
def druh_dokladu
  at 'DruhDokladu'
end
druh_dokladu_attributes() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 26
def druh_dokladu_attributes
  attributes_at 'DruhDokladu'
end
eet() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 38
def eet
  submodel_at(EETType, 'EET')
end
id_dokladu() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 6
def id_dokladu
  at 'IDDokladu'
end
id_dokladu_attributes() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 10
def id_dokladu_attributes
  attributes_at 'IDDokladu'
end
rok() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 30
def rok
  at 'Rok'
end
rok_attributes() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 34
def rok_attributes
  attributes_at 'Rok'
end
to_h() click to toggle source
# File lib/money_s3/parsers/dokl_ref_type.rb, line 42
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id_dokladu] = id_dokladu if has? 'IDDokladu'
  hash[:id_dokladu_attributes] = id_dokladu_attributes if has? 'IDDokladu'
  hash[:cislo_dokladu] = cislo_dokladu if has? 'CisloDokladu'
  hash[:cislo_dokladu_attributes] = cislo_dokladu_attributes if has? 'CisloDokladu'
  hash[:druh_dokladu] = druh_dokladu if has? 'DruhDokladu'
  hash[:druh_dokladu_attributes] = druh_dokladu_attributes if has? 'DruhDokladu'
  hash[:rok] = rok if has? 'Rok'
  hash[:rok_attributes] = rok_attributes if has? 'Rok'
  hash[:eet] = eet.to_h if has? 'EET'

  hash
end