Module: LinkedIn

Defined in:
lib/linkedin.rb,
lib/linked_in/api.rb,
lib/linked_in/mash.rb,
lib/linked_in/client.rb,
lib/linked_in/errors.rb,
lib/linked_in/search.rb,
lib/linked_in/helpers.rb,
lib/linked_in/version.rb,
lib/linked_in/api/jobs.rb,
lib/linked_in/api/groups.rb,
lib/linked_in/api/people.rb,
lib/linked_in/api/companies.rb,
lib/linked_in/helpers/request.rb,
lib/linked_in/api/query_helpers.rb,
lib/linked_in/api/communications.rb,
lib/linked_in/helpers/authorization.rb,
lib/linked_in/api/share_and_social_stream.rb

Defined Under Namespace

Modules: Api, Errors, Helpers, Search, VERSION Classes: Client, Mash

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_profile_fieldsObject

Returns the value of attribute default_profile_fields.



6
7
8
# File 'lib/linkedin.rb', line 6

def default_profile_fields
  @default_profile_fields
end

.secretObject

Returns the value of attribute secret.



6
7
8
# File 'lib/linkedin.rb', line 6

def secret
  @secret
end

.tokenObject

Returns the value of attribute token.



6
7
8
# File 'lib/linkedin.rb', line 6

def token
  @token
end

Class Method Details

.configure {|_self| ... } ⇒ Object

config/initializers/linkedin.rb (for instance)

LinkedIn.configure do |config|
  config.token = 'consumer_token'
  config.secret = 'consumer_secret'
  config.default_profile_fields = ['educations', 'positions']
end

elsewhere

client = LinkedIn::Client.new

Yields:

  • (_self)

Yield Parameters:

  • _self (LinkedIn)

    the object that the method was called on



22
23
24
25
# File 'lib/linkedin.rb', line 22

def configure
  yield self
  true
end