Sha256: cf60ad8dacc1e97994718e1e46c53e39034a36da094fb6e27a727523e813eeac

Contents?: true

Size: 881 Bytes

Versions: 7

Compression:

Stored size: 881 Bytes

Contents

module MoneyS3
  module Parsers
    class MenaType
      include ParserCore::BaseParser

      def kod
        at 'Kod'
      end

      def kod_attributes
        attributes_at 'Kod'
      end

      def mnozstvi
        at 'Mnozstvi'
      end

      def mnozstvi_attributes
        attributes_at 'Mnozstvi'
      end

      def kurs
        at 'Kurs'
      end

      def kurs_attributes
        attributes_at 'Kurs'
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

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

        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/mena_type.rb
money_s3-2.4.0 lib/money_s3/parsers/mena_type.rb
money_s3-2.3.0 lib/money_s3/parsers/mena_type.rb
money_s3-2.2.0 lib/money_s3/parsers/mena_type.rb
money_s3-2.1.0 lib/money_s3/parsers/mena_type.rb
money_s3-2.0.0 lib/money_s3/parsers/mena_type.rb
money_s3-1.0.0 lib/money_s3/parsers/mena_type.rb