Class: Braintree::FacilitatedDetails

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/facilitated_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

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_idObject (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_nameObject (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_nonceObject (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

#inspectObject



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