Class: Intercom::SocialProfile
- Inherits:
-
Object
- Object
- Intercom::SocialProfile
- 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)
-
- (String) id
readonly
Id.
-
- (String) type
readonly
Type e.g.
-
- (String) url
readonly
Url.
-
- (String) username
readonly
Username.
Instance Method Summary (collapse)
-
- (SocialProfile) initialize(params)
constructor
A new instance of SocialProfile.
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
10 11 12 |
# File 'lib/intercom/social_profile.rb', line 10 def id @id end |
- (String) type (readonly)
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
12 13 14 |
# File 'lib/intercom/social_profile.rb', line 12 def url @url end |
- (String) username (readonly)
Username
14 15 16 |
# File 'lib/intercom/social_profile.rb', line 14 def username @username end |