Class: LinkedIn::Credentials
- Inherits:
-
Object
- Object
- LinkedIn::Credentials
- Extended by:
- Forwardable
- Defined in:
- lib/linkedin/credentials.rb
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(configuration) ⇒ Credentials
constructor
A new instance of Credentials.
- #type ⇒ Object
Constructor Details
#initialize(configuration) ⇒ Credentials
Returns a new instance of Credentials.
7 8 9 |
# File 'lib/linkedin/credentials.rb', line 7 def initialize(configuration) @configuration = configuration end |
Instance Method Details
#client ⇒ Object
15 16 17 |
# File 'lib/linkedin/credentials.rb', line 15 def client @client ||= OAuth2::Client.new @configuration.key, @configuration.secret, end |
#type ⇒ Object
11 12 13 |
# File 'lib/linkedin/credentials.rb', line 11 def type :oauth2 end |