Class: MoneyS3::Parsers::TelefonType

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

Instance Method Summary collapse

Instance Method Details

#cisloObject



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

def cislo
  at 'Cislo'
end

#cislo_attributesObject



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

def cislo_attributes
  attributes_at 'Cislo'
end

#klapObject



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

def klap
  at 'Klap'
end

#klap_attributesObject



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

def klap_attributes
  attributes_at 'Klap'
end

#predObject



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

def pred
  at 'Pred'
end

#pred_attributesObject



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

def pred_attributes
  attributes_at 'Pred'
end

#to_hObject



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/money_s3/parsers/telefon_type.rb', line 30

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

  hash[:pred] = pred if has? 'Pred'
  hash[:pred_attributes] = pred_attributes if has? 'Pred'
  hash[:cislo] = cislo if has? 'Cislo'
  hash[:cislo_attributes] = cislo_attributes if has? 'Cislo'
  hash[:klap] = klap if has? 'Klap'
  hash[:klap_attributes] = klap_attributes if has? 'Klap'

  hash
end