Module: EzLinkedin
- Defined in:
- lib/ezlinkedin.rb,
lib/ezlinkedin/api.rb,
lib/ezlinkedin/mash.rb,
lib/ezlinkedin/client.rb,
lib/ezlinkedin/errors.rb,
lib/ezlinkedin/search.rb,
lib/ezlinkedin/request.rb,
lib/ezlinkedin/api/query_methods.rb,
lib/ezlinkedin/api/update_methods.rb
Defined Under Namespace
Modules: Api, Errors, Request, Search 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
EzLinkedin.configure do |config| config.token = ‘consumer_token’ config.secret = ‘consumer_secret’ config.default_profile_fields = [‘education’, ‘positions’] end.
Class Attribute Details
.default_profile_fields ⇒ Object
Returns the value of attribute default_profile_fields.
14 15 16 |
# File 'lib/ezlinkedin.rb', line 14 def default_profile_fields @default_profile_fields end |
.secret ⇒ Object
Returns the value of attribute secret.
14 15 16 |
# File 'lib/ezlinkedin.rb', line 14 def secret @secret end |
.token ⇒ Object
Returns the value of attribute token.
14 15 16 |
# File 'lib/ezlinkedin.rb', line 14 def token @token end |
Class Method Details
.configure {|_self| ... } ⇒ Object
EzLinkedin.configure do |config|
config.token = 'consumer_token'
config.secret = 'consumer_secret'
config.default_profile_fields = ['education', 'positions']
end
elsewhere
client = EzLinkedin::Client.new
25 26 27 28 |
# File 'lib/ezlinkedin.rb', line 25 def configure yield self true end |