Class: MoneyS3::Parsers::ParametrType

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

Instance Method Summary collapse

Instance Method Details

#druhObject



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

def druh
  at 'Druh'
end

#druh_attributesObject



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

def druh_attributes
  attributes_at 'Druh'
end

#hodnotyObject



54
55
56
# File 'lib/money_s3/parsers/parametr_type.rb', line 54

def hodnoty
  at 'Hodnoty'
end

#hodnoty_attributesObject



58
59
60
# File 'lib/money_s3/parsers/parametr_type.rb', line 58

def hodnoty_attributes
  attributes_at 'Hodnoty'
end

#idObject



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

def id
  at 'ID'
end

#id_attributesObject



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

def id_attributes
  attributes_at 'ID'
end

#mjObject



38
39
40
# File 'lib/money_s3/parsers/parametr_type.rb', line 38

def mj
  at 'MJ'
end

#mj_attributesObject



42
43
44
# File 'lib/money_s3/parsers/parametr_type.rb', line 42

def mj_attributes
  attributes_at 'MJ'
end

#nazevObject



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

def nazev
  at 'Nazev'
end

#nazev_attributesObject



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

def nazev_attributes
  attributes_at 'Nazev'
end

#to_hObject



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/money_s3/parsers/parametr_type.rb', line 62

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

  hash[:id] = id if has? 'ID'
  hash[:id_attributes] = id_attributes if has? 'ID'
  hash[:nazev] = nazev if has? 'Nazev'
  hash[:nazev_attributes] = nazev_attributes if has? 'Nazev'
  hash[:druh] = druh if has? 'Druh'
  hash[:druh_attributes] = druh_attributes if has? 'Druh'
  hash[:typ] = typ if has? 'Typ'
  hash[:typ_attributes] = typ_attributes if has? 'Typ'
  hash[:mj] = mj if has? 'MJ'
  hash[:mj_attributes] = mj_attributes if has? 'MJ'
  hash[:uziv_code] = uziv_code if has? 'UzivCode'
  hash[:uziv_code_attributes] = uziv_code_attributes if has? 'UzivCode'
  hash[:hodnoty] = hodnoty if has? 'Hodnoty'
  hash[:hodnoty_attributes] = hodnoty_attributes if has? 'Hodnoty'

  hash
end

#typObject



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

def typ
  at 'Typ'
end

#typ_attributesObject



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

def typ_attributes
  attributes_at 'Typ'
end

#uziv_codeObject



46
47
48
# File 'lib/money_s3/parsers/parametr_type.rb', line 46

def uziv_code
  at 'UzivCode'
end

#uziv_code_attributesObject



50
51
52
# File 'lib/money_s3/parsers/parametr_type.rb', line 50

def uziv_code_attributes
  attributes_at 'UzivCode'
end