Class: MoneyS3::Parsers::EkategorieType

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

Instance Method Summary collapse

Instance Method Details

#descriptObject



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

def descript
  at 'Descript'
end

#descript_attributesObject



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

def descript_attributes
  attributes_at 'Descript'
end

#e_shop_infoObject



46
47
48
# File 'lib/money_s3/parsers/ekategorie_type.rb', line 46

def e_shop_info
  submodel_at(EShopInfo, 'eShopInfo')
end

#idObject



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

def id
  at 'ID'
end

#id_attributesObject



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

def id_attributes
  attributes_at 'ID'
end

#in_changedObject



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

def in_changed
  at 'IN_Changed'
end

#in_changed_attributesObject



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

def in_changed_attributes
  attributes_at 'IN_Changed'
end

#nameObject



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

def name
  at 'Name'
end

#name_attributesObject



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

def name_attributes
  attributes_at 'Name'
end

#no_publicObject



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

def no_public
  at 'NoPublic'
end

#no_public_attributesObject



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

def no_public_attributes
  attributes_at 'NoPublic'
end

#seznam_podr_kategoriiObject



50
51
52
# File 'lib/money_s3/parsers/ekategorie_type.rb', line 50

def seznam_podr_kategorii
  array_of_at(EkategorieType, ['SeznamPodrKategorii', 'eKategorie'])
end

#to_hObject



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/money_s3/parsers/ekategorie_type.rb', line 54

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

  hash[:id] = id if has? 'ID'
  hash[:id_attributes] = id_attributes if has? 'ID'
  hash[:name] = name if has? 'Name'
  hash[:name_attributes] = name_attributes if has? 'Name'
  hash[:descript] = descript if has? 'Descript'
  hash[:descript_attributes] = descript_attributes if has? 'Descript'
  hash[:in_changed] = in_changed if has? 'IN_Changed'
  hash[:in_changed_attributes] = in_changed_attributes if has? 'IN_Changed'
  hash[:no_public] = no_public if has? 'NoPublic'
  hash[:no_public_attributes] = no_public_attributes if has? 'NoPublic'
  hash[:e_shop_info] = e_shop_info.to_h if has? 'eShopInfo'
  hash[:seznam_podr_kategorii] = seznam_podr_kategorii.map(&:to_h) if has? 'SeznamPodrKategorii'

  hash
end