Sha256: f39845398c3ac6af812fdd4535b8ad847a626d8a705411599986cf730bf91e56

Contents?: true

Size: 894 Bytes

Versions: 7

Compression:

Stored size: 894 Bytes

Contents

module MoneyS3
  module Parsers
    class NepPlatidloType
      include ParserCore::BaseParser

      def kod
        at 'Kod'
      end

      def kod_attributes
        attributes_at 'Kod'
      end

      def popis
        at 'Popis'
      end

      def popis_attributes
        attributes_at 'Popis'
      end

      def var_symb
        at 'VarSymb'
      end

      def var_symb_attributes
        attributes_at 'VarSymb'
      end

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

        hash[:kod] = kod if has? 'Kod'
        hash[:kod_attributes] = kod_attributes if has? 'Kod'
        hash[:popis] = popis if has? 'Popis'
        hash[:popis_attributes] = popis_attributes if has? 'Popis'
        hash[:var_symb] = var_symb if has? 'VarSymb'
        hash[:var_symb_attributes] = var_symb_attributes if has? 'VarSymb'

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