Class: Braintree::BinData
- Inherits:
-
Object
- Object
- Braintree::BinData
- Includes:
- BaseModule
- Defined in:
- lib/braintree/bin_data.rb
Instance Attribute Summary collapse
-
#commercial ⇒ Object
readonly
Returns the value of attribute commercial.
-
#country_of_issuance ⇒ Object
readonly
Returns the value of attribute country_of_issuance.
-
#debit ⇒ Object
readonly
Returns the value of attribute debit.
-
#durbin_regulated ⇒ Object
readonly
Returns the value of attribute durbin_regulated.
-
#healthcare ⇒ Object
readonly
Returns the value of attribute healthcare.
-
#issuing_bank ⇒ Object
readonly
Returns the value of attribute issuing_bank.
-
#payroll ⇒ Object
readonly
Returns the value of attribute payroll.
-
#prepaid ⇒ Object
readonly
Returns the value of attribute prepaid.
-
#product_id ⇒ Object
readonly
Returns the value of attribute product_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ BinData
constructor
A new instance of BinData.
- #inspect ⇒ Object
Methods included from BaseModule
Methods included from Braintree::BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(attributes) ⇒ BinData
Returns a new instance of BinData.
15 16 17 |
# File 'lib/braintree/bin_data.rb', line 15 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end |
Instance Attribute Details
#commercial ⇒ Object (readonly)
Returns the value of attribute commercial.
5 6 7 |
# File 'lib/braintree/bin_data.rb', line 5 def commercial @commercial end |
#country_of_issuance ⇒ Object (readonly)
Returns the value of attribute country_of_issuance.
6 7 8 |
# File 'lib/braintree/bin_data.rb', line 6 def country_of_issuance @country_of_issuance end |
#debit ⇒ Object (readonly)
Returns the value of attribute debit.
7 8 9 |
# File 'lib/braintree/bin_data.rb', line 7 def debit @debit end |
#durbin_regulated ⇒ Object (readonly)
Returns the value of attribute durbin_regulated.
8 9 10 |
# File 'lib/braintree/bin_data.rb', line 8 def durbin_regulated @durbin_regulated end |
#healthcare ⇒ Object (readonly)
Returns the value of attribute healthcare.
9 10 11 |
# File 'lib/braintree/bin_data.rb', line 9 def healthcare @healthcare end |
#issuing_bank ⇒ Object (readonly)
Returns the value of attribute issuing_bank.
10 11 12 |
# File 'lib/braintree/bin_data.rb', line 10 def issuing_bank @issuing_bank end |
#payroll ⇒ Object (readonly)
Returns the value of attribute payroll.
11 12 13 |
# File 'lib/braintree/bin_data.rb', line 11 def payroll @payroll end |
#prepaid ⇒ Object (readonly)
Returns the value of attribute prepaid.
12 13 14 |
# File 'lib/braintree/bin_data.rb', line 12 def prepaid @prepaid end |
#product_id ⇒ Object (readonly)
Returns the value of attribute product_id.
13 14 15 |
# File 'lib/braintree/bin_data.rb', line 13 def product_id @product_id end |
Class Method Details
._attributes ⇒ Object
26 27 28 29 30 31 |
# 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 |
Instance Method Details
#inspect ⇒ Object
19 20 21 22 23 24 |
# 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 |