Class: Braintree::FacilitatorDetails

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/facilitator_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) ⇒ FacilitatorDetails

Returns a new instance of FacilitatorDetails.



8
9
10
# File 'lib/braintree/facilitator_details.rb', line 8

def initialize(attributes)
  set_instance_variables_from_hash attributes unless attributes.nil?
end

Instance Attribute Details

#oauth_application_client_idObject (readonly)

Returns the value of attribute oauth_application_client_id.



5
6
7
# File 'lib/braintree/facilitator_details.rb', line 5

def oauth_application_client_id
  @oauth_application_client_id
end

#oauth_application_nameObject (readonly)

Returns the value of attribute oauth_application_name.



6
7
8
# File 'lib/braintree/facilitator_details.rb', line 6

def oauth_application_name
  @oauth_application_name
end

Instance Method Details

#inspectObject



12
13
14
15
16
17
18
# File 'lib/braintree/facilitator_details.rb', line 12

def inspect
  attr_order = [:oauth_application_client_id, :oauth_application_name]
  formatted_attrs = attr_order.map do |attr|
    "#{attr}: #{send(attr).inspect}"
  end
  "#<FacilitatorDetails #{formatted_attrs.join(", ")}>"
end