Class: MoneyS3::Parsers::MzPriplatek

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

Instance Method Summary collapse

Instance Method Details

#prip_hodinObject



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

def prip_hodin
  at 'PripHodin'
end

#prip_hodin_attributesObject



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

def prip_hodin_attributes
  attributes_at 'PripHodin'
end

#to_hObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/money_s3/parsers/mz_priplatek.rb', line 18

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

  hash[:typ_priplatku] = typ_priplatku.to_h if has? 'TypPriplatku'
  hash[:prip_hodin] = prip_hodin if has? 'PripHodin'
  hash[:prip_hodin_attributes] = prip_hodin_attributes if has? 'PripHodin'

  hash
end

#typ_priplatkuObject



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

def typ_priplatku
  submodel_at(TypPriplatkuType, 'TypPriplatku')
end