Class: ModelScope::Reports::Base
- Inherits:
-
Object
- Object
- ModelScope::Reports::Base
- Defined in:
- lib/modelscope/reports/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#callbacks ⇒ Object
readonly
Returns the value of attribute callbacks.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(callbacks) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(callbacks) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/modelscope/reports/base.rb', line 8 def initialize(callbacks) @callbacks = callbacks @stats = Stats.new(callbacks) end |
Instance Attribute Details
#callbacks ⇒ Object (readonly)
Returns the value of attribute callbacks.
6 7 8 |
# File 'lib/modelscope/reports/base.rb', line 6 def callbacks @callbacks end |
Instance Method Details
#generate ⇒ Object
13 14 15 |
# File 'lib/modelscope/reports/base.rb', line 13 def generate raise NotImplementedError end |