Class: HelpScout::Customer::SocialProfile

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

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



777
778
779
# File 'lib/helpscout/models.rb', line 777

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



777
778
779
# File 'lib/helpscout/models.rb', line 777

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



777
778
779
# File 'lib/helpscout/models.rb', line 777

def value
  @value
end