Sha256: e538514a06f13f41518a3f0361f6257969c319a0de1277542e43ca93442726e1

Contents?: true

Size: 613 Bytes

Versions: 4

Compression:

Stored size: 613 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class BankSpojeniType
      include 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 = 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

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/bank_spojeni_type.rb
money_s3-0.9.0 lib/money_s3/parsers/bank_spojeni_type.rb
money_s3-0.8.0 lib/money_s3/parsers/bank_spojeni_type.rb
money_s3-0.7.0 lib/money_s3/parsers/bank_spojeni_type.rb