Class: GithubDailyUpdate::Reporter::Base
- Inherits:
-
Object
- Object
- GithubDailyUpdate::Reporter::Base
- 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.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(client, options = {}) ⇒ Base
constructor
A new instance of Base.
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, = {}) @client = client @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/github_daily_update/reporters/base.rb', line 7 def @options end |
Instance Method Details
#generate ⇒ Object
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 |