Class: LinkedIn::Credentials

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/linkedin/credentials.rb

Instance Method Summary collapse

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

#clientObject



15
16
17
# File 'lib/linkedin/credentials.rb', line 15

def client
  @client ||= OAuth2::Client.new @configuration.key, @configuration.secret, oauth2_options
end

#typeObject



11
12
13
# File 'lib/linkedin/credentials.rb', line 11

def type
  :oauth2
end