class Braintree::BinData
Attributes
Public Class Methods
Source
# File lib/braintree/bin_data.rb, line 31 def self._attributes [ :business, :commercial, :consumer, :corporate, :country_of_issuance, :debit, :durbin_regulated, :healthcare, :issuing_bank, :payroll, :prepaid, :prepaid_reloadable, :product_id, :purchase ] end
Source
# File lib/braintree/bin_data.rb, line 20 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end
Public Instance Methods
Source
# File lib/braintree/bin_data.rb, line 24 def inspect formatted_attributes = self.class._attributes.map do |attr| "#{attr}: #{send(attr).inspect}" end "#<#{self.class} #{formatted_attributes.join(", ")}>" end