Sha256: 23e519071599988cbf7a2d76c971e12d1799623da204157623a25bd4da7d6772
Contents?: true
Size: 551 Bytes
Versions: 7
Compression:
Stored size: 551 Bytes
Contents
module MoneyS3 module Parsers class ValutyUhr include ParserCore::BaseParser def mena submodel_at(MenaType, 'Mena') end def castka at 'Castka' end def castka_attributes attributes_at 'Castka' end def to_h hash = {} hash[:attributes] = attributes hash[:mena] = mena.to_h if has? 'Mena' hash[:castka] = castka if has? 'Castka' hash[:castka_attributes] = castka_attributes if has? 'Castka' hash end end end end
Version data entries
7 entries across 7 versions & 1 rubygems