Class: MoneyS3::Parsers::VyrobniCislo

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

Instance Method Summary collapse

Instance Method Details

#car_kodObject



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

def car_kod
  at 'CarKod'
end

#car_kod_attributesObject



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

def car_kod_attributes
  attributes_at 'CarKod'
end

#dat_vyrObject



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

def dat_vyr
  at 'DatVyr'
end

#dat_vyr_attributesObject



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

def dat_vyr_attributes
  attributes_at 'DatVyr'
end

#to_hObject



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/money_s3/parsers/vyrobni_cislo.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[:dat_vyr] = dat_vyr if has? 'DatVyr'
  hash[:dat_vyr_attributes] = dat_vyr_attributes if has? 'DatVyr'
  hash[:car_kod] = car_kod if has? 'CarKod'
  hash[:car_kod_attributes] = car_kod_attributes if has? 'CarKod'

  hash
end

#vyrobni_cisObject



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

def vyrobni_cis
  at 'VyrobniCis'
end

#vyrobni_cis_attributesObject



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

def vyrobni_cis_attributes
  attributes_at 'VyrobniCis'
end