Class: Supai::Phone
Instance Attribute Summary collapse
-
#is_mobile ⇒ Object
Returns the value of attribute is_mobile.
-
#number ⇒ Object
Returns the value of attribute number.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Phone
constructor
A new instance of Phone.
- #inspect ⇒ Object
Methods inherited from Resource
#as_json, attr_accessor, attr_collections, attr_objects, attr_timestamp_accessor, attributes, #parse_collection, #parse_object, #parse_timestamp, #set_attribute, #set_attributes, #underscore
Constructor Details
#initialize(hash) ⇒ Phone
Returns a new instance of Phone.
5 6 7 |
# File 'lib/supai/phone.rb', line 5 def initialize(hash) set_attributes(hash) end |
Instance Attribute Details
#is_mobile ⇒ Object
Returns the value of attribute is_mobile.
3 4 5 |
# File 'lib/supai/phone.rb', line 3 def is_mobile @is_mobile end |
#number ⇒ Object
Returns the value of attribute number.
3 4 5 |
# File 'lib/supai/phone.rb', line 3 def number @number end |
Instance Method Details
#inspect ⇒ Object
9 10 11 |
# File 'lib/supai/phone.rb', line 9 def inspect "#<#{self.class} #{number}>" end |