Module: LinkedIn
- Defined in:
- lib/linkedin.rb,
lib/linked_in/error.rb,
lib/linked_in/group.rb,
lib/linked_in/client.rb,
lib/linked_in/people.rb,
lib/linked_in/update.rb,
lib/linked_in/company.rb,
lib/linked_in/country.rb,
lib/linked_in/network.rb,
lib/linked_in/profile.rb,
lib/linked_in/location.rb,
lib/linked_in/position.rb,
lib/linked_in/education.rb,
lib/linked_in/connections.rb,
lib/linked_in/url_resource.rb,
lib/linked_in/api_standard_profile_request.rb
Defined Under Namespace
Classes: ApiStandardProfileRequest, Client, Company, Connections, Country, Education, Error, General, Group, InformLinkedIn, LinkedInError, Location, Network, NotFound, People, Position, Profile, RateLimitExceeded, Unauthorized, Unavailable, Update, UrlResource
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
config/initializers/linkedin.rb (for instance).
- .secret ⇒ Object
- .secret=(secret) ⇒ Object
- .token ⇒ Object
- .token=(token) ⇒ Object
Class Method Details
.configure {|_self| ... } ⇒ Object
config/initializers/linkedin.rb (for instance)
LinkedIn.configure do |config|
config.token = 'consumer_token'
config.secret = 'consumer_secret'
end
elsewhere
client = LinkedIn::Client.new
43 44 45 46 47 48 49 |
# File 'lib/linkedin.rb', line 43 def self.configure yield self LinkedIn.token = token LinkedIn.secret = secret true end |
.secret ⇒ Object
59 60 61 |
# File 'lib/linkedin.rb', line 59 def self.secret @secret end |
.secret=(secret) ⇒ Object
63 64 65 |
# File 'lib/linkedin.rb', line 63 def self.secret=(secret) @secret = secret end |
.token ⇒ Object
51 52 53 |
# File 'lib/linkedin.rb', line 51 def self.token @token end |
.token=(token) ⇒ Object
55 56 57 |
# File 'lib/linkedin.rb', line 55 def self.token=(token) @token = token end |