Sha256: ae6381d71a8cf58e18bd98c62a815f33e7cab6086dd1945000ab56646d4cccfe
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 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 hash = WithAttributes.new({}) hash.attributes = attributes hash[:castka] = castka if has? 'Castka' hash[:mena] = mena.to_h if has? 'Mena' hash end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.6.0 | lib/money_s3/parsers/valuty_hraz.rb |