Class: LinkedIn::Client

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::CommentMethods

#get_comments

Methods included from Api::PeopleSearchMethods

#people_search

Methods included from Api::CompanySearchMethods

#company_search, #location

Methods included from Api::PostMethods

#group_posts

Methods included from Api::GroupMethods

#groups, #suggested_groups

Methods included from Api::UpdateMethods

#add_share

Methods included from Api::QueryMethods

#company, #connections, #network_updates, #profile

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.



19
20
21
22
23
# File 'lib/linked_in/client.rb', line 19

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.



17
18
19
# File 'lib/linked_in/client.rb', line 17

def consumer_options
  @consumer_options
end

#consumer_secretObject (readonly)

Returns the value of attribute consumer_secret.



17
18
19
# File 'lib/linked_in/client.rb', line 17

def consumer_secret
  @consumer_secret
end

#consumer_tokenObject (readonly)

Returns the value of attribute consumer_token.



17
18
19
# File 'lib/linked_in/client.rb', line 17

def consumer_token
  @consumer_token
end