Class: MoneyS3::Parsers::BankSpojeniType

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

Instance Method Summary collapse

Instance Method Details

#kod_bankyObject



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

def kod_banky
  at 'KodBanky'
end

#kod_banky_attributesObject



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

def kod_banky_attributes
  attributes_at 'KodBanky'
end

#menaObject



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

def mena
  at 'Mena'
end

#mena_attributesObject



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

def mena_attributes
  attributes_at 'Mena'
end

#to_hObject



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

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

  hash[:ucet] = ucet if has? 'Ucet'
  hash[:ucet_attributes] = ucet_attributes if has? 'Ucet'
  hash[:kod_banky] = kod_banky if has? 'KodBanky'
  hash[:kod_banky_attributes] = kod_banky_attributes if has? 'KodBanky'
  hash[:mena] = mena if has? 'Mena'
  hash[:mena_attributes] = mena_attributes if has? 'Mena'
  hash[:ucel] = ucel if has? 'Ucel'
  hash[:ucel_attributes] = ucel_attributes if has? 'Ucel'

  hash
end

#ucelObject



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

def ucel
  at 'Ucel'
end

#ucel_attributesObject



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

def ucel_attributes
  attributes_at 'Ucel'
end

#ucetObject



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

def ucet
  at 'Ucet'
end

#ucet_attributesObject



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

def ucet_attributes
  attributes_at 'Ucet'
end