Sha256: b17f19c26fa6a9014d177ca36b2773ec24ab25e72a4204d0d31144d625b8c16e
Contents?: true
Size: 840 Bytes
Versions: 7
Compression:
Stored size: 840 Bytes
Contents
module MoneyS3 module Parsers class KomponentaType include ParserCore::BaseParser def poc_mj at 'PocMJ' end def poc_mj_attributes attributes_at 'PocMJ' end def stav_zasoby submodel_at(StavZasobyType, 'StavZasoby') end def km_karta submodel_at(KmKartaType, 'KmKarta') end def sklad submodel_at(SkladType, 'Sklad') end def to_h hash = {} hash[:attributes] = attributes hash[:poc_mj] = poc_mj if has? 'PocMJ' hash[:poc_mj_attributes] = poc_mj_attributes if has? 'PocMJ' hash[:stav_zasoby] = stav_zasoby.to_h if has? 'StavZasoby' hash[:km_karta] = km_karta.to_h if has? 'KmKarta' hash[:sklad] = sklad.to_h if has? 'Sklad' hash end end end end
Version data entries
7 entries across 7 versions & 1 rubygems