Class: HelpScout::Customer::Chat
- Inherits:
-
Object
- Object
- HelpScout::Customer::Chat
- Defined in:
- lib/helpscout/models.rb
Overview
Customer::Chat developer.helpscout.net/objects/customer/chat/
Name Type Example Notes
id Int 77183 Unique identifier
value String jsprout
type String aim Chat type
Possible values for type include:
-
TYPE_AIM
-
TYPE_GTALK
-
TYPE_ICQ
-
TYPE_XMPP
-
TYPE_MSN
-
TYPE_SKYPE
-
TYPE_YAHOO
-
TYPE_QQ
-
TYPE_OTHER
Constant Summary collapse
- TYPE_AIM =
"aim"
- TYPE_GTALK =
"gtalk"
- TYPE_ICQ =
"icq"
- TYPE_XMPP =
"xmpp"
- TYPE_MSN =
"msn"
- TYPE_SKYPE =
"skype"
- TYPE_YAHOO =
"yahoo"
- TYPE_QQ =
"qq"
- TYPE_OTHER =
"other"
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(object) ⇒ Chat
constructor
Creates a new Customer::Chat object from a Hash of attributes.
Constructor Details
#initialize(object) ⇒ Chat
Creates a new Customer::Chat object from a Hash of attributes
681 682 683 684 685 |
# File 'lib/helpscout/models.rb', line 681 def initialize(object) @id = object["id"] @value = object["value"] @type = object["type"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
668 669 670 |
# File 'lib/helpscout/models.rb', line 668 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
668 669 670 |
# File 'lib/helpscout/models.rb', line 668 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
668 669 670 |
# File 'lib/helpscout/models.rb', line 668 def value @value end |