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

Class Method Summary collapse

Class Attribute Details

.default_profile_fieldsObject

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

.secretObject

Returns the value of attribute secret.



14
15
16
# File 'lib/ezlinkedin.rb', line 14

def secret
  @secret
end

.tokenObject

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

Yields:

  • (_self)

Yield Parameters:

  • _self (EzLinkedin)

    the object that the method was called on



25
26
27
28
# File 'lib/ezlinkedin.rb', line 25

def configure
  yield self
  true
end