Sha256: 26a75b8ed16d55c60b8f674d49765d8b911e89fa2dd51c392a52a8cf326c5644

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class MenaType
      include BaseParser

      def kod
        at 'Kod'
      end

      def mnozstvi
        at 'Mnozstvi'
      end

      def kurs
        at 'Kurs'
      end

      def to_h_with_attrs
        hash = HashWithAttributes.new({}, attributes)

        hash[:kod] = kod if has? 'Kod'
        hash[:mnozstvi] = mnozstvi if has? 'Mnozstvi'
        hash[:kurs] = kurs if has? 'Kurs'

        hash
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/mena_type.rb
money_s3-0.9.0 lib/money_s3/parsers/mena_type.rb
money_s3-0.8.0 lib/money_s3/parsers/mena_type.rb
money_s3-0.7.0 lib/money_s3/parsers/mena_type.rb