class Braintree::BinData

Attributes

commercial[R]
country_of_issuance[R]
debit[R]
durbin_regulated[R]
healthcare[R]
issuing_bank[R]
payroll[R]
prepaid[R]
product_id[R]

Public Class Methods

_attributes() click to toggle source
# File lib/braintree/bin_data.rb, line 26
def self._attributes
  [
    :commercial, :country_of_issuance, :debit, :durbin_regulated, :healthcare,
    :issuing_bank, :payroll, :prepaid, :product_id
  ]
end
new(attributes) click to toggle source
# File lib/braintree/bin_data.rb, line 15
def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
end

Public Instance Methods

inspect() click to toggle source
# File lib/braintree/bin_data.rb, line 19
def inspect
  formatted_attributes = self.class._attributes.map do |attr|
    "#{attr}: #{send(attr).inspect}"
  end
  "#<#{self.class} #{formatted_attributes.join(", ")}>"
end