Class: MoneyS3::Parsers::AlternativaPrislusenstviType

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

Instance Method Summary collapse

Instance Method Details

#druh_kompObject



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

def druh_komp
  at 'DruhKomp'
end

#druh_komp_attributesObject



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

def druh_komp_attributes
  attributes_at 'DruhKomp'
end

#km_kartaObject



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

def km_karta
  submodel_at(KmKartaType, 'KmKarta')
end

#poc_mjObject



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

def poc_mj
  at 'PocMJ'
end

#poc_mj_attributesObject



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

def poc_mj_attributes
  attributes_at 'PocMJ'
end

#popisObject



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

def popis
  at 'Popis'
end

#popis_attributesObject



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

def popis_attributes
  attributes_at 'Popis'
end

#poradiObject



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

def poradi
  at 'Poradi'
end

#poradi_attributesObject



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

def poradi_attributes
  attributes_at 'Poradi'
end

#skladObject



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

def sklad
  submodel_at(SkladType, 'Sklad')
end

#symetricObject



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

def symetric
  at 'Symetric'
end

#symetric_attributesObject



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

def symetric_attributes
  attributes_at 'Symetric'
end

#to_hObject



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/money_s3/parsers/alternativa_prislusenstvi_type.rb', line 54

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

  hash[:popis] = popis if has? 'Popis'
  hash[:popis_attributes] = popis_attributes if has? 'Popis'
  hash[:poc_mj] = poc_mj if has? 'PocMJ'
  hash[:poc_mj_attributes] = poc_mj_attributes if has? 'PocMJ'
  hash[:poradi] = poradi if has? 'Poradi'
  hash[:poradi_attributes] = poradi_attributes if has? 'Poradi'
  hash[:druh_komp] = druh_komp if has? 'DruhKomp'
  hash[:druh_komp_attributes] = druh_komp_attributes if has? 'DruhKomp'
  hash[:symetric] = symetric if has? 'Symetric'
  hash[:symetric_attributes] = symetric_attributes if has? 'Symetric'
  hash[:km_karta] = km_karta.to_h if has? 'KmKarta'
  hash[:sklad] = sklad.to_h if has? 'Sklad'

  hash
end