Class: Braintree::Descriptor
- Inherits:
-
Object
- Object
- Braintree::Descriptor
- Includes:
- BaseModule
- Defined in:
- lib/braintree/descriptor.rb
Overview
:nodoc:
Instance Attribute Summary (collapse)
-
- (Object) name
readonly
Returns the value of attribute name.
-
- (Object) phone
readonly
Returns the value of attribute phone.
Instance Method Summary (collapse)
-
- (Descriptor) initialize(attributes)
constructor
A new instance of Descriptor.
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
- (Descriptor) initialize(attributes)
A new instance of Descriptor
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 |