Class: GithubDailyUpdate::Reporter::Base

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

Overview

The base class is the class that reporters extend. All common functionality should go here.

Direct Known Subclasses

Merged, OpenPulls

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, options = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/github_daily_update/reporters/base.rb', line 9

def initialize(client, options = {})
  @client = client
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/github_daily_update/reporters/base.rb', line 7

def options
  @options
end

Instance Method Details

#generateObject



14
15
16
# File 'lib/github_daily_update/reporters/base.rb', line 14

def generate
  throw 'Generate method needs to be defined in the reporter'
end