Class: MoneyS3::Parsers::PrepravceType

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

Instance Method Summary collapse

Instance Method Details

#kod_odesilObject



30
31
32
# File 'lib/money_s3/parsers/prepravce_type.rb', line 30

def kod_odesil
  at 'KodOdesil'
end

#kod_odesil_attributesObject



34
35
36
# File 'lib/money_s3/parsers/prepravce_type.rb', line 34

def kod_odesil_attributes
  attributes_at 'KodOdesil'
end

#nazevObject



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

def nazev
  at 'Nazev'
end

#nazev_attributesObject



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

def nazev_attributes
  attributes_at 'Nazev'
end

#poznamkaObject



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

def poznamka
  at 'Poznamka'
end

#poznamka_attributesObject



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

def poznamka_attributes
  attributes_at 'Poznamka'
end

#to_hObject



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/money_s3/parsers/prepravce_type.rb', line 38

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

  hash[:zkrat] = zkrat if has? 'Zkrat'
  hash[:zkrat_attributes] = zkrat_attributes if has? 'Zkrat'
  hash[:nazev] = nazev if has? 'Nazev'
  hash[:nazev_attributes] = nazev_attributes if has? 'Nazev'
  hash[:poznamka] = poznamka if has? 'Poznamka'
  hash[:poznamka_attributes] = poznamka_attributes if has? 'Poznamka'
  hash[:kod_odesil] = kod_odesil if has? 'KodOdesil'
  hash[:kod_odesil_attributes] = kod_odesil_attributes if has? 'KodOdesil'

  hash
end

#zkratObject



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

def zkrat
  at 'Zkrat'
end

#zkrat_attributesObject



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

def zkrat_attributes
  attributes_at 'Zkrat'
end