Class: Braintree::Descriptor

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

Overview

:nodoc:

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

- (Descriptor) initialize(attributes)



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

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

Instance Attribute Details

- (Object) name (readonly)

Returns the value of attribute name



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

def name
  @name
end

- (Object) phone (readonly)

Returns the value of attribute phone



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

def phone
  @phone
end