Class: Braintree::FacilitatedDetails
- Inherits:
-
Object
- Object
- Braintree::FacilitatedDetails
- Includes:
- BaseModule
- Defined in:
- lib/braintree/facilitated_details.rb
Instance Attribute Summary collapse
-
#merchant_id ⇒ Object
readonly
Returns the value of attribute merchant_id.
-
#merchant_name ⇒ Object
readonly
Returns the value of attribute merchant_name.
-
#payment_method_nonce ⇒ Object
readonly
Returns the value of attribute payment_method_nonce.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ FacilitatedDetails
constructor
A new instance of FacilitatedDetails.
- #inspect ⇒ Object
Methods included from BaseModule
Methods included from BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(attributes) ⇒ FacilitatedDetails
Returns a new instance of FacilitatedDetails.
9 10 11 |
# File 'lib/braintree/facilitated_details.rb', line 9 def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end |
Instance Attribute Details
#merchant_id ⇒ Object (readonly)
Returns the value of attribute merchant_id.
5 6 7 |
# File 'lib/braintree/facilitated_details.rb', line 5 def merchant_id @merchant_id end |
#merchant_name ⇒ Object (readonly)
Returns the value of attribute merchant_name.
6 7 8 |
# File 'lib/braintree/facilitated_details.rb', line 6 def merchant_name @merchant_name end |
#payment_method_nonce ⇒ Object (readonly)
Returns the value of attribute payment_method_nonce.
7 8 9 |
# File 'lib/braintree/facilitated_details.rb', line 7 def payment_method_nonce @payment_method_nonce end |
Instance Method Details
#inspect ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/braintree/facilitated_details.rb', line 13 def inspect attr_order = [:merchant_id, :merchant_name, :payment_method_nonce] formatted_attrs = attr_order.map do |attr| "#{attr}: #{send(attr).inspect}" end "#<FacilitatorDetails #{formatted_attrs.join(", ")}>" end |