Class: ContributorsStats::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/contributors_stats/base.rb

Overview

Basis for ContributorsStats, includes logging and plugins support

Direct Known Subclasses

Reader

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



7
8
9
10
11
# File 'lib/contributors_stats/base.rb', line 7

def initialize(options = {})
  @logger = $stdout
  @logger = options.delete(:logger) if options[:logger]
  @options = options
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/contributors_stats/base.rb', line 5

def logger
  @logger
end

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/contributors_stats/base.rb', line 5

def options
  @options
end