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

Version Path
money_s3-2.4.1 lib/money_s3/parsers/valuty_uhr.rb
money_s3-2.4.0 lib/money_s3/parsers/valuty_uhr.rb
money_s3-2.3.0 lib/money_s3/parsers/valuty_uhr.rb
money_s3-2.2.0 lib/money_s3/parsers/valuty_uhr.rb
money_s3-2.1.0 lib/money_s3/parsers/valuty_uhr.rb
money_s3-2.0.0 lib/money_s3/parsers/valuty_uhr.rb
money_s3-1.0.0 lib/money_s3/parsers/valuty_uhr.rb