class HelpScout::Customer::Phone

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:

Constants

LOCATION_FAX
LOCATION_HOME
LOCATION_MOBILE
LOCATION_OTHER
LOCATION_PAGER
LOCATION_WORK

Attributes

id[R]
location[R]
value[R]

Public Class Methods

new(object) click to toggle source

Creates a new Customer::Phone object from a Hash of attributes

# File lib/helpscout/models.rb, line 746
def initialize(object)
  @id = object["id"]
  @value = object["value"]
  @location = object["location"]
end