Class: HubLink::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hub_link/configuration.rb

Constant Summary collapse

RETRY_ON =
Faraday::Request::Retry::DEFAULT_EXCEPTIONS + [Octokit::BadGateway, Octokit::TooManyRequests]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



12
13
14
15
16
# File 'lib/hub_link/configuration.rb', line 12

def initialize
  self.logger = SimpleLogger.new
  Octokit.middleware = middleware
  Octokit.auto_paginate = false
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



10
11
12
# File 'lib/hub_link/configuration.rb', line 10

def logger
  @logger
end