Sha256: dffdceeb426d17b7fced60bce832092e50bea9798bdae3d5c5657814c8840ff6

Contents?: true

Size: 597 Bytes

Versions: 2

Compression:

Stored size: 597 Bytes

Contents

module MoneyS3
  module Parsers
    class BankSpojeniType
      include ParserCore::BaseParser

      def ucet
        at 'Ucet'
      end

      def kod_banky
        at 'KodBanky'
      end

      def mena
        at 'Mena'
      end

      def ucel
        at 'Ucel'
      end

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

        hash[:ucet] = ucet if has? 'Ucet'
        hash[:kod_banky] = kod_banky if has? 'KodBanky'
        hash[:mena] = mena if has? 'Mena'
        hash[:ucel] = ucel if has? 'Ucel'

        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/bank_spojeni_type.rb
money_s3-0.11.0 lib/money_s3/parsers/bank_spojeni_type.rb