Sha256: d80bbd4511264766cccb14d6b7cda369cafa0c4dc1d715b461113871f212fdc9

Contents?: true

Size: 506 Bytes

Versions: 2

Compression:

Stored size: 506 Bytes

Contents

module MoneyS3
  module Parsers
    class NepPlatidloType
      include ParserCore::BaseParser

      def kod
        at 'Kod'
      end

      def popis
        at 'Popis'
      end

      def var_symb
        at 'VarSymb'
      end

      def to_h_with_attrs
        hash = ParserCore::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

2 entries across 2 versions & 1 rubygems

Version Path
money_s3-0.12.0 lib/money_s3/parsers/nep_platidlo_type.rb
money_s3-0.11.0 lib/money_s3/parsers/nep_platidlo_type.rb