Class: Braintree::Descriptor
- Inherits:
-
Object
- Object
- Braintree::Descriptor
- Includes:
- BaseModule
- Defined in:
- lib/braintree/descriptor.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Descriptor
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
#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
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/braintree/descriptor.rb', line 5 def name @name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
6 7 8 |
# File 'lib/braintree/descriptor.rb', line 6 def phone @phone end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/braintree/descriptor.rb', line 7 def url @url end |