Module: Gandi::GandiObjectMethods
- Included in:
- Contact, Domain, Domain::Forward, Domain::Host, Domain::Mailbox, Domain::Zone, Operation
- Defined in:
- lib/gandi/gandi_object_methods.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#[](attribute) ⇒ Object
Returns an attribute value.
-
#inspect ⇒ Object
Returns a string containing a human-readable representation of the object.
-
#to_hash ⇒ Object
Returns a hash (with string keys) with the object information attributes.
Class Method Details
Instance Method Details
#[](attribute) ⇒ Object
Returns an attribute value.
19 20 21 |
# File 'lib/gandi/gandi_object_methods.rb', line 19 def [](attribute) @attributes[attribute.to_s] end |
#inspect ⇒ Object
Returns a string containing a human-readable representation of the object. TODO improve the output.
14 15 16 |
# File 'lib/gandi/gandi_object_methods.rb', line 14 def inspect @attributes.inspect end |
#to_hash ⇒ Object
Returns a hash (with string keys) with the object information attributes.
8 9 10 |
# File 'lib/gandi/gandi_object_methods.rb', line 8 def to_hash @attributes.dup end |