Class: HelpScout::Customer::Phone
- Inherits:
-
Object
- Object
- HelpScout::Customer::Phone
- Defined in:
- lib/helpscout/models.rb
Overview
Customer::Phone developer.helpscout.net/objects/customer/phone/
Name Type Example Notes
id Int 22381 Unique identifier
value String 222-333-4444
location String home Location for this phone
Possible values for location include:
-
LOCATION_HOME
-
LOCATION_WORK
-
LOCATION_MOBILE
-
LOCATION_FAX
-
LOCATION_PAGER
-
LOCATION_OTHER
Constant Summary collapse
- LOCATION_HOME =
"home"
- LOCATION_WORK =
"work"
- LOCATION_MOBILE =
"mobile"
- LOCATION_FAX =
"fax"
- LOCATION_PAGER =
"pager"
- LOCATION_OTHER =
"other"
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(object) ⇒ Phone
constructor
Creates a new Customer::Phone object from a Hash of attributes.
Constructor Details
#initialize(object) ⇒ Phone
Creates a new Customer::Phone object from a Hash of attributes
746 747 748 749 750 |
# File 'lib/helpscout/models.rb', line 746 def initialize(object) @id = object["id"] @value = object["value"] @location = object["location"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
736 737 738 |
# File 'lib/helpscout/models.rb', line 736 def id @id end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
736 737 738 |
# File 'lib/helpscout/models.rb', line 736 def location @location end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
736 737 738 |
# File 'lib/helpscout/models.rb', line 736 def value @value end |