Class: Intercom::SocialProfile

Inherits:
Object
  • Object
show all
Defined in:
lib/intercom/social_profile.rb

Overview

object representing a social profile for the User (see )docs.intercom.io/#SocialProfiles). Read only part of the User object

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (SocialProfile) initialize(params)

A new instance of SocialProfile



17
18
19
20
21
22
# File 'lib/intercom/social_profile.rb', line 17

def initialize(params)
  @type = params["type"]
  @id = params["id"]
  @url = params["url"]
  @username = params["username"]
end

Instance Attribute Details

- (String) id (readonly)

Id

Returns:

  • (String)

    id



10
11
12
# File 'lib/intercom/social_profile.rb', line 10

def id
  @id
end

- (String) type (readonly)

Type e.g. twitter, facebook etc.

Returns:

  • (String)

    type e.g. twitter, facebook etc.



8
9
10
# File 'lib/intercom/social_profile.rb', line 8

def type
  @type
end

- (String) url (readonly)

Url

Returns:

  • (String)

    url



12
13
14
# File 'lib/intercom/social_profile.rb', line 12

def url
  @url
end

- (String) username (readonly)

Username

Returns:

  • (String)

    username



14
15
16
# File 'lib/intercom/social_profile.rb', line 14

def username
  @username
end