Class: MoneyS3::Parsers::Ucet

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

Instance Method Summary collapse

Instance Method Details

#b_kodObject



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

def b_kod
  at 'BKod'
end

#b_kod_attributesObject



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

def b_kod_attributes
  attributes_at 'BKod'
end

#b_nazevObject



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

def b_nazev
  at 'BNazev'
end

#b_nazev_attributesObject



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

def b_nazev_attributes
  attributes_at 'BNazev'
end

#to_hObject



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/money_s3/parsers/ucet.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[:ucet] = ucet if has? 'Ucet'
  hash[:ucet_attributes] = ucet_attributes if has? 'Ucet'
  hash[:b_kod] = b_kod if has? 'BKod'
  hash[:b_kod_attributes] = b_kod_attributes if has? 'BKod'
  hash[:b_nazev] = b_nazev if has? 'BNazev'
  hash[:b_nazev_attributes] = b_nazev_attributes if has? 'BNazev'

  hash
end

#ucetObject



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

def ucet
  at 'Ucet'
end

#ucet_attributesObject



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

def ucet_attributes
  attributes_at 'Ucet'
end

#zkratObject



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

def zkrat
  at 'Zkrat'
end

#zkrat_attributesObject



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

def zkrat_attributes
  attributes_at 'Zkrat'
end