Class: MoneyS3::Parsers::StavZasobyType

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

Instance Method Summary collapse

Instance Method Details

#objednanoObject



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

def objednano
  at 'Objednano'
end

#objednano_attributesObject



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

def objednano_attributes
  attributes_at 'Objednano'
end

#rezervaceObject



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

def rezervace
  at 'Rezervace'
end

#rezervace_attributesObject



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

def rezervace_attributes
  attributes_at 'Rezervace'
end

#to_hObject



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

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

  hash[:zasoba] = zasoba if has? 'Zasoba'
  hash[:zasoba_attributes] = zasoba_attributes if has? 'Zasoba'
  hash[:rezervace] = rezervace if has? 'Rezervace'
  hash[:rezervace_attributes] = rezervace_attributes if has? 'Rezervace'
  hash[:objednano] = objednano if has? 'Objednano'
  hash[:objednano_attributes] = objednano_attributes if has? 'Objednano'

  hash
end

#zasobaObject



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

def zasoba
  at 'Zasoba'
end

#zasoba_attributesObject



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

def zasoba_attributes
  attributes_at 'Zasoba'
end