Module: LinkedIn::Configuration::ClassConfiguration

Defined in:
lib/linkedin/configuration.rb

Instance Method Summary collapse

Instance Method Details

#configurationObject



19
20
21
# File 'lib/linkedin/configuration.rb', line 19

def configuration
  @configuration ||= OpenStruct.new default_config
end

#default_configObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/linkedin/configuration.rb', line 4

def default_config
  {
    request_format: :json,

    app_key: nil,
    app_secret: nil,
    access_token: nil,

    scope: ['r_basicprofile'],
    redirect_uri: 'http://localhost',

    logger: Logger.new('/dev/null')
  }
end

#resetObject



23
24
25
# File 'lib/linkedin/configuration.rb', line 23

def reset
  configuration.marshal_load default_config
end