Class: Braintree::Descriptor

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

Returns a new instance of Descriptor.



9
10
11
# File 'lib/braintree/descriptor.rb', line 9

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#phoneObject (readonly)

Returns the value of attribute phone.



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

def phone
  @phone
end

#urlObject (readonly)

Returns the value of attribute url.



7
8
9
# File 'lib/braintree/descriptor.rb', line 7

def url
  @url
end