Sha256: 19126d75a51d8f99c5e140d95b722990caec62a83f30c6cf2b233993f1dd3082
Contents?: true
Size: 496 Bytes
Versions: 4
Compression:
Stored size: 496 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/mena_type' module MoneyS3 module Parsers class ValutyHraz include BaseParser def castka at 'Castka' end def mena submodel_at(MenaType, 'Mena') end def to_h_with_attrs hash = HashWithAttributes.new({}, attributes) hash[:castka] = castka if has? 'Castka' hash[:mena] = mena.to_h_with_attrs if has? 'Mena' hash end end end end
Version data entries
4 entries across 4 versions & 1 rubygems