Sha256: 6d3d349c7ad0f51b41faa4538f0db14ac3fa245a494efb5bbd383bac32578673

Contents?: true

Size: 848 Bytes

Versions: 20

Compression:

Stored size: 848 Bytes

Contents

module Braintree
  class BinData # :nodoc:
    include BaseModule

    attr_reader :commercial
    attr_reader :country_of_issuance
    attr_reader :debit
    attr_reader :durbin_regulated
    attr_reader :healthcare
    attr_reader :issuing_bank
    attr_reader :payroll
    attr_reader :prepaid
    attr_reader :product_id

    def initialize(attributes)
      set_instance_variables_from_hash attributes unless attributes.nil?
    end

    def inspect
      formatted_attributes = self.class._attributes.map do |attr|
        "#{attr}: #{send(attr).inspect}"
      end
      "#<#{self.class} #{formatted_attributes.join(", ")}>"
    end

    def self._attributes # :nodoc:
      [
        :commercial, :country_of_issuance, :debit, :durbin_regulated, :healthcare,
        :issuing_bank, :payroll, :prepaid, :product_id
      ]
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/bin_data.rb
braintree-4.14.0 lib/braintree/bin_data.rb
braintree-4.13.0 lib/braintree/bin_data.rb
braintree-4.12.0 lib/braintree/bin_data.rb
braintree-4.11.0 lib/braintree/bin_data.rb
braintree-4.10.0 lib/braintree/bin_data.rb
braintree-4.9.0 lib/braintree/bin_data.rb
braintree-4.8.0 lib/braintree/bin_data.rb
braintree-4.7.0 lib/braintree/bin_data.rb
braintree-4.6.0 lib/braintree/bin_data.rb
braintree-4.5.0 lib/braintree/bin_data.rb
braintree-4.4.0 lib/braintree/bin_data.rb
braintree-4.3.0 lib/braintree/bin_data.rb
braintree-4.2.0 lib/braintree/bin_data.rb
braintree-4.1.0 lib/braintree/bin_data.rb
braintree-4.0.0 lib/braintree/bin_data.rb
braintree-3.4.0 lib/braintree/bin_data.rb
braintree-3.3.0 lib/braintree/bin_data.rb
braintree-3.2.0 lib/braintree/bin_data.rb
braintree-3.1.0 lib/braintree/bin_data.rb