Class: MoneyS3::Parsers::AdresaType

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

Instance Method Summary collapse

Instance Method Details

#kod_statuObject



38
39
40
# File 'lib/money_s3/parsers/adresa_type.rb', line 38

def kod_statu
  at 'KodStatu'
end

#kod_statu_attributesObject



42
43
44
# File 'lib/money_s3/parsers/adresa_type.rb', line 42

def kod_statu_attributes
  attributes_at 'KodStatu'
end

#mistoObject



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

def misto
  at 'Misto'
end

#misto_attributesObject



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

def misto_attributes
  attributes_at 'Misto'
end

#pscObject



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

def psc
  at 'PSC'
end

#psc_attributesObject



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

def psc_attributes
  attributes_at 'PSC'
end

#statObject



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

def stat
  at 'Stat'
end

#stat_attributesObject



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

def stat_attributes
  attributes_at 'Stat'
end

#to_hObject



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/money_s3/parsers/adresa_type.rb', line 46

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

  hash[:ulice] = ulice if has? 'Ulice'
  hash[:ulice_attributes] = ulice_attributes if has? 'Ulice'
  hash[:misto] = misto if has? 'Misto'
  hash[:misto_attributes] = misto_attributes if has? 'Misto'
  hash[:psc] = psc if has? 'PSC'
  hash[:psc_attributes] = psc_attributes if has? 'PSC'
  hash[:stat] = stat if has? 'Stat'
  hash[:stat_attributes] = stat_attributes if has? 'Stat'
  hash[:kod_statu] = kod_statu if has? 'KodStatu'
  hash[:kod_statu_attributes] = kod_statu_attributes if has? 'KodStatu'

  hash
end

#uliceObject



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

def ulice
  at 'Ulice'
end

#ulice_attributesObject



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

def ulice_attributes
  attributes_at 'Ulice'
end