Class: HelpScout::Customer::SocialProfile
- Inherits:
-
Object
- Object
- HelpScout::Customer::SocialProfile
- Defined in:
- lib/helpscout/models.rb
Overview
Customer::SocialProfile developer.helpscout.net/objects/customer/social-profile/
Name Type Example Notes
id Int 9184 Unique identifier
value String https://twitter.com/helpscout
type String twitter Type of social profile.
Possible values for type include:
-
TYPE_TWITTER
-
TYPE_FACEBOOK
-
TYPE_LINKEDIN
-
TYPE_ABOUTME
-
TYPE_GOOGLE
-
TYPE_GOOGLE_PLUS
-
TYPE_TUNGLEME
-
TYPE_QUORA
-
TYPE_FOURSQUARE
-
TYPE_YOUTUBE
-
TYPE_FLICKR
-
TYPE_OTHER
Constant Summary collapse
- TYPE_TWITTER =
"twitter"
- TYPE_FACEBOOK =
"facebook"
- TYPE_LINKEDIN =
"linkedin"
- TYPE_ABOUTME =
"aboutme"
- TYPE_GOOGLE =
"google"
- TYPE_GOOGLE_PLUS =
"googleplus"
- TYPE_TUNGLEME =
"tungleme"
- TYPE_QUORA =
"quora"
- TYPE_FOURSQUARE =
"foursquare"
- TYPE_YOUTUBE =
"youtube"
- TYPE_FLICKR =
"flickr"
- 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) ⇒ SocialProfile
constructor
Creates a new Customer::SocialProfile object from a Hash of attributes.
Constructor Details
#initialize(object) ⇒ SocialProfile
Creates a new Customer::SocialProfile object from a Hash of attributes
793 794 795 796 797 |
# File 'lib/helpscout/models.rb', line 793 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.
777 778 779 |
# File 'lib/helpscout/models.rb', line 777 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
777 778 779 |
# File 'lib/helpscout/models.rb', line 777 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
777 778 779 |
# File 'lib/helpscout/models.rb', line 777 def value @value end |