Class: HelpScout::Customer::Phone

Inherits:
Object
  • Object
show all
Defined in:
lib/helpscout/models.rb

Overview

Customer::Phone http://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

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



736
737
738
# File 'lib/helpscout/models.rb', line 736

def id
  @id
end

#locationObject (readonly)

Returns the value of attribute location.



736
737
738
# File 'lib/helpscout/models.rb', line 736

def location
  @location
end

#valueObject (readonly)

Returns the value of attribute value.



736
737
738
# File 'lib/helpscout/models.rb', line 736

def value
  @value
end