Class: MoneyS3::Parsers::VysledekOdesl

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

Instance Method Summary collapse

Instance Method Details

#chybaObject



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

def chyba
  at 'Chyba'
end

#chyba_attributesObject



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

def chyba_attributes
  attributes_at 'Chyba'
end

#to_hObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/money_s3/parsers/vysledek_odesl.rb', line 18

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

  hash[:chyba] = chyba if has? 'Chyba'
  hash[:chyba_attributes] = chyba_attributes if has? 'Chyba'
  hash[:varovani] = varovani if has? 'Varovani'

  hash
end

#varovaniObject



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

def varovani
  array_of_at(String, ['Varovani'])
end