Sha256: f7c5f98141c576d419b26b3b7f016a24a0c5c9b77974d4f1c940f3c83752e3d4

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 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
        hash = WithAttributes.new({})
        hash.attributes = 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

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.6.0 lib/money_s3/parsers/bank_spojeni_type.rb