Sha256: feb62a7f27ac9f667fb5a1c40c8fc53f9f0fa54e2348af14dd5271ab69452309

Contents?: true

Size: 522 Bytes

Versions: 4

Compression:

Stored size: 522 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class NepPlatidloType
      include BaseParser

      def kod
        at 'Kod'
      end

      def popis
        at 'Popis'
      end

      def var_symb
        at 'VarSymb'
      end

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

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

        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/nep_platidlo_type.rb
money_s3-0.9.0 lib/money_s3/parsers/nep_platidlo_type.rb
money_s3-0.8.0 lib/money_s3/parsers/nep_platidlo_type.rb
money_s3-0.7.0 lib/money_s3/parsers/nep_platidlo_type.rb