-
Notifications
You must be signed in to change notification settings - Fork 402
Expand file tree
/
Copy pathlinked_in.rb
More file actions
36 lines (33 loc) · 870 Bytes
/
linked_in.rb
File metadata and controls
36 lines (33 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
require 'oauth'
require 'linked_in/configuration'
module LinkedIn
extend Configuration
class << self
attr_accessor :token, :secret, :default_profile_fields
# config/initializers/linkedin.rb (for instance)
#
# ```ruby
# LinkedIn.configure do |config|
# config.token = 'consumer_token'
# config.secret = 'consumer_secret'
# config.default_profile_fields = ['educations', 'positions']
# end
# ```
# elsewhere
#
# ```ruby
# client = LinkedIn::Client.new
# ```
def configure
yield self
true
end
end
autoload :Api, "linked_in/api"
autoload :Client, "linked_in/client"
autoload :Mash, "linked_in/mash"
autoload :Errors, "linked_in/errors"
autoload :Helpers, "linked_in/helpers"
autoload :Search, "linked_in/search"
autoload :Version, "linked_in/version"
end