Class: MoneyS3::Parsers::NepPlatbaType

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

Instance Method Summary collapse

Instance Method Details

#castkaObject



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

def castka
  at 'Castka'
end

#castka_attributesObject



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

def castka_attributes
  attributes_at 'Castka'
end

#mnozstvi_mjObject



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

def mnozstvi_mj
  at 'MnozstviMJ'
end

#mnozstvi_mj_attributesObject



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

def mnozstvi_mj_attributes
  attributes_at 'MnozstviMJ'
end

#platidloObject



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

def platidlo
  submodel_at(NepPlatidloType, 'Platidlo')
end

#to_hObject



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/money_s3/parsers/nep_platba_type.rb', line 26

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

  hash[:platidlo] = platidlo.to_h if has? 'Platidlo'
  hash[:mnozstvi_mj] = mnozstvi_mj if has? 'MnozstviMJ'
  hash[:mnozstvi_mj_attributes] = mnozstvi_mj_attributes if has? 'MnozstviMJ'
  hash[:castka] = castka if has? 'Castka'
  hash[:castka_attributes] = castka_attributes if has? 'Castka'

  hash
end