Class: ActiveReporter::Evaluator::Base
- Inherits:
-
Object
- Object
- ActiveReporter::Evaluator::Base
- Defined in:
- lib/active_reporter/evaluator/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Instance Method Summary collapse
- #default_value ⇒ Object
-
#initialize(name, report, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(name, report, options = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/active_reporter/evaluator/base.rb', line 8 def initialize(name, report, = {}) @name = name @report = report @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/active_reporter/evaluator/base.rb', line 6 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/active_reporter/evaluator/base.rb', line 6 def @options end |
#report ⇒ Object (readonly)
Returns the value of attribute report.
6 7 8 |
# File 'lib/active_reporter/evaluator/base.rb', line 6 def report @report end |
Instance Method Details
#default_value ⇒ Object
14 15 16 |
# File 'lib/active_reporter/evaluator/base.rb', line 14 def default_value .fetch(:default_value, nil) end |