Sha256: 10806f7ac9f0f487426cf37e8c3b77a8aaee034d48dc60c569dc0b2b83f34f8a

Contents?: true

Size: 693 Bytes

Versions: 2

Compression:

Stored size: 693 Bytes

Contents

require 'intercom/user_resource'

module Intercom
  ##
  # object representing a social profile for the User (see )http://docs.intercom.io/#SocialProfiles)
  class SocialProfile < UserResource
    def for_wire #:nodoc:
      @attributes
    end

    def type
      @attributes["type"]
    end

    def type=(type)
      @attributes["type"]=type
    end

    def id
      @attributes["id"]
    end

    def id=(id)
      @attributes["id"]=id
    end

    def url
      @attributes["url"]
    end

    def url=(url)
      @attributes["url"]=url
    end

    def username
      @attributes["username"]
    end

    def username=(username)
      @attributes["username"]=username
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
intercom-0.0.3 lib/intercom/social_profile.rb
intercom-0.0.2 lib/intercom/social_profile.rb