Class: HelpScout::Customer::Chat

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



668
669
670
# File 'lib/helpscout/models.rb', line 668

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



668
669
670
# File 'lib/helpscout/models.rb', line 668

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



668
669
670
# File 'lib/helpscout/models.rb', line 668

def value
  @value
end