class MoneyS3::Parsers::Import2

Public Instance Methods

dod_odb() click to toggle source
# File lib/money_s3/parsers/import2.rb, line 6
def dod_odb
  submodel_at(MsgFirmaType, 'DodOdb')
end
konec_prij() click to toggle source
# File lib/money_s3/parsers/import2.rb, line 10
def konec_prij
  submodel_at(MsgFirmaType, 'KonecPrij')
end
nep_platba() click to toggle source
# File lib/money_s3/parsers/import2.rb, line 18
def nep_platba
  array_of_at(MessageType, ['NepPlatba'])
end
polozka() click to toggle source
# File lib/money_s3/parsers/import2.rb, line 14
def polozka
  array_of_at(MsgPolozType, ['Polozka'])
end
to_h() click to toggle source
Calls superclass method
# File lib/money_s3/parsers/import2.rb, line 22
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:dod_odb] = dod_odb.to_h if has? 'DodOdb'
  hash[:konec_prij] = konec_prij.to_h if has? 'KonecPrij'
  hash[:polozka] = polozka.map(&:to_h) if has? 'Polozka'
  hash[:nep_platba] = nep_platba.map(&:to_h) if has? 'NepPlatba'

  hash
  super.merge(hash)
end