Class: MoneyS3::Parsers::DodavkaType

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

Instance Method Summary collapse

Instance Method Details

#cenaObject



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

def cena
  at 'Cena'
end

#cena_attributesObject



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

def cena_attributes
  attributes_at 'Cena'
end

#dat_expObject



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

def dat_exp
  at 'DatExp'
end

#dat_exp_attributesObject



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

def dat_exp_attributes
  attributes_at 'DatExp'
end

#oznaceniObject



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

def oznaceni
  at 'Oznaceni'
end

#oznaceni_attributesObject



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

def oznaceni_attributes
  attributes_at 'Oznaceni'
end

#pocet_mjObject



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

def pocet_mj
  at 'PocetMJ'
end

#pocet_mj_attributesObject



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

def pocet_mj_attributes
  attributes_at 'PocetMJ'
end

#to_hObject



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

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

  hash[:oznaceni] = oznaceni if has? 'Oznaceni'
  hash[:oznaceni_attributes] = oznaceni_attributes if has? 'Oznaceni'
  hash[:dat_exp] = dat_exp if has? 'DatExp'
  hash[:dat_exp_attributes] = dat_exp_attributes if has? 'DatExp'
  hash[:pocet_mj] = pocet_mj if has? 'PocetMJ'
  hash[:pocet_mj_attributes] = pocet_mj_attributes if has? 'PocetMJ'
  hash[:cena] = cena if has? 'Cena'
  hash[:cena_attributes] = cena_attributes if has? 'Cena'

  hash
end