Class: LinkedIn::Client

Inherits:
Object
  • Object
show all
Includes:
Api::QueryMethods, Api::UpdateMethods, Helpers::Authorization, Helpers::Request, Search
Defined in:
lib/linked_in/client.rb

Constant Summary

Constants included from Helpers::Authorization

Helpers::Authorization::DEFAULT_OAUTH_OPTIONS

Constants included from Helpers::Request

Helpers::Request::API_PATH, Helpers::Request::DEFAULT_HEADERS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Search

#search

Methods included from Api::UpdateMethods

#add_company_share, #add_group_share, #add_job_bookmark, #add_share, #follow_company, #join_group, #like_share, #post_group_discussion, #send_message, #unfollow_company, #unlike_share, #update_comment

Methods included from Api::QueryMethods

#company, #company_statistics, #company_updates, #company_updates_comments, #company_updates_likes, #connections, #group_memberships, #group_posts, #group_profile, #job, #job_bookmarks, #job_suggestions, #network_updates, #picture_urls, #profile, #share_comments, #share_likes, #shares

Methods included from Helpers::Authorization

#access_token, #authorize_from_access, #authorize_from_request, #consumer, #request_token

Constructor Details

#initialize(ctoken = LinkedIn.token, csecret = LinkedIn.secret, options = {}) ⇒ Client

Returns a new instance of Client.



14
15
16
17
18
# File 'lib/linked_in/client.rb', line 14

def initialize(ctoken=LinkedIn.token, csecret=LinkedIn.secret, options={})
  @consumer_token   = ctoken
  @consumer_secret  = csecret
  @consumer_options = options
end

Instance Attribute Details

#consumer_optionsObject (readonly)

Returns the value of attribute consumer_options.



12
13
14
# File 'lib/linked_in/client.rb', line 12

def consumer_options
  @consumer_options
end

#consumer_secretObject (readonly)

Returns the value of attribute consumer_secret.



12
13
14
# File 'lib/linked_in/client.rb', line 12

def consumer_secret
  @consumer_secret
end

#consumer_tokenObject (readonly)

Returns the value of attribute consumer_token.



12
13
14
# File 'lib/linked_in/client.rb', line 12

def consumer_token
  @consumer_token
end