Class: MoneyS3::Parsers::VyrobniCisloType

Inherits:
Object
  • Object
show all
Includes:
ParserCore::BaseParser
Defined in:
lib/money_s3/parsers/vyrobni_cislo_type.rb

Instance Method Summary collapse

Instance Method Details

#carovy_kodObject



22
23
24
# File 'lib/money_s3/parsers/vyrobni_cislo_type.rb', line 22

def carovy_kod
  at 'CarovyKod'
end

#carovy_kod_attributesObject



26
27
28
# File 'lib/money_s3/parsers/vyrobni_cislo_type.rb', line 26

def carovy_kod_attributes
  attributes_at 'CarovyKod'
end

#datum_vyrobObject



14
15
16
# File 'lib/money_s3/parsers/vyrobni_cislo_type.rb', line 14

def datum_vyrob
  at 'DatumVyrob'
end

#datum_vyrob_attributesObject



18
19
20
# File 'lib/money_s3/parsers/vyrobni_cislo_type.rb', line 18

def datum_vyrob_attributes
  attributes_at 'DatumVyrob'
end

#to_hObject



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/money_s3/parsers/vyrobni_cislo_type.rb', line 30

def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:vyrobni_cis] = vyrobni_cis if has? 'VyrobniCis'
  hash[:vyrobni_cis_attributes] = vyrobni_cis_attributes if has? 'VyrobniCis'
  hash[:datum_vyrob] = datum_vyrob if has? 'DatumVyrob'
  hash[:datum_vyrob_attributes] = datum_vyrob_attributes if has? 'DatumVyrob'
  hash[:carovy_kod] = carovy_kod if has? 'CarovyKod'
  hash[:carovy_kod_attributes] = carovy_kod_attributes if has? 'CarovyKod'

  hash
end

#vyrobni_cisObject



6
7
8
# File 'lib/money_s3/parsers/vyrobni_cislo_type.rb', line 6

def vyrobni_cis
  at 'VyrobniCis'
end

#vyrobni_cis_attributesObject



10
11
12
# File 'lib/money_s3/parsers/vyrobni_cislo_type.rb', line 10

def vyrobni_cis_attributes
  attributes_at 'VyrobniCis'
end