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/helpers/request.rb,
lib/linked_in/api/post_methods.rb,
lib/linked_in/api/group_methods.rb,
lib/linked_in/api/query_methods.rb,
lib/linked_in/api/update_methods.rb,
lib/linked_in/api/comment_methods.rb,
lib/linked_in/helpers/authorization.rb,
lib/linked_in/api/people_search_methods.rb,
lib/linked_in/api/company_search_methods.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 = ['education', 'positions']

end

elsewhere

client = LinkedIn::Client.new

Yields:

  • (_self)

Yield Parameters:

  • _self (LinkedIn)

    the object that the method was called on



19
20
21
22
# File 'lib/linkedin.rb', line 19

def configure
  yield self
  true
end