Class: MoneyS3::Parsers::EshopZasobaType

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

Instance Method Summary collapse

Instance Method Details

#cis_kartyObject



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

def cis_karty
  at 'CisKarty'
end

#cis_karty_attributesObject



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

def cis_karty_attributes
  attributes_at 'CisKarty'
end

#cis_skladuObject



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

def cis_skladu
  at 'CisSkladu'
end

#cis_skladu_attributesObject



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

def cis_skladu_attributes
  attributes_at 'CisSkladu'
end

#e_skupObject



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

def e_skup
  array_of_at(EkategorieZasobaType, ['eSkup'])
end

#in_changedObject



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

def in_changed
  at 'IN_Changed'
end

#in_changed_attributesObject



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

def in_changed_attributes
  attributes_at 'IN_Changed'
end

#in_deletedObject



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

def in_deleted
  at 'IN_Deleted'
end

#in_deleted_attributesObject



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

def in_deleted_attributes
  attributes_at 'IN_Deleted'
end

#in_exportObject



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

def in_export
  at 'IN_Export'
end

#in_export_attributesObject



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

def in_export_attributes
  attributes_at 'IN_Export'
end

#to_hObject



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/money_s3/parsers/eshop_zasoba_type.rb', line 50

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

  hash[:in_export] = in_export if has? 'IN_Export'
  hash[:in_export_attributes] = in_export_attributes if has? 'IN_Export'
  hash[:in_changed] = in_changed if has? 'IN_Changed'
  hash[:in_changed_attributes] = in_changed_attributes if has? 'IN_Changed'
  hash[:in_deleted] = in_deleted if has? 'IN_Deleted'
  hash[:in_deleted_attributes] = in_deleted_attributes if has? 'IN_Deleted'
  hash[:cis_karty] = cis_karty if has? 'CisKarty'
  hash[:cis_karty_attributes] = cis_karty_attributes if has? 'CisKarty'
  hash[:cis_skladu] = cis_skladu if has? 'CisSkladu'
  hash[:cis_skladu_attributes] = cis_skladu_attributes if has? 'CisSkladu'
  hash[:e_skup] = e_skup.map(&:to_h) if has? 'eSkup'

  hash
end