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/query_methods.rb,
lib/linked_in/api/update_methods.rb,
lib/linked_in/helpers/authorization.rb
Defined Under Namespace
Modules: Api, Errors, Helpers, Search, VERSION Classes: Client, Mash
Class Attribute Summary collapse
-
.default_profile_fields ⇒ Object
Returns the value of attribute default_profile_fields.
-
.secret ⇒ Object
Returns the value of attribute secret.
-
.token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
config/initializers/linkedin.rb (for instance).
Class Attribute Details
.default_profile_fields ⇒ Object
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 |
.secret ⇒ Object
Returns the value of attribute secret.
6 7 8 |
# File 'lib/linkedin.rb', line 6 def secret @secret end |
.token ⇒ Object
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
19 20 21 22 |
# File 'lib/linkedin.rb', line 19 def configure yield self true end |