Class: LinkedIn::Client
- Inherits:
-
Object
- Object
- LinkedIn::Client
- Defined in:
- lib/linked_in/client.rb
Constant Summary
Constants included from Helpers::Request
Helpers::Request::API_PATH, Helpers::Request::DEFAULT_HEADERS
Constants included from Helpers::Authorization
Helpers::Authorization::DEFAULT_OAUTH_OPTIONS
Instance Attribute Summary collapse
-
#consumer_options ⇒ Object
readonly
Returns the value of attribute consumer_options.
-
#consumer_secret ⇒ Object
readonly
Returns the value of attribute consumer_secret.
-
#consumer_token ⇒ Object
readonly
Returns the value of attribute consumer_token.
Instance Method Summary collapse
-
#initialize(ctoken = LinkedIn.token, csecret = LinkedIn.secret, options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Search
Methods included from Api::UpdateMethods
#add_share, #message_to_xml, #post, #send_message
Methods included from Api::QueryMethods
#company, #company_search, #connections, #job_search, #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.
14 15 16 17 18 |
# File 'lib/linked_in/client.rb', line 14 def initialize(ctoken=LinkedIn.token, csecret=LinkedIn.secret, ={}) @consumer_token = ctoken @consumer_secret = csecret @consumer_options = end |
Instance Attribute Details
#consumer_options ⇒ Object (readonly)
Returns the value of attribute consumer_options.
12 13 14 |
# File 'lib/linked_in/client.rb', line 12 def @consumer_options end |
#consumer_secret ⇒ Object (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_token ⇒ Object (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 |