Class: LinkThumbnailer::Graders::Base
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- LinkThumbnailer::Graders::Base
- Defined in:
- lib/link_thumbnailer/graders/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
- #call(current_score) ⇒ Object
-
#initialize(description) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(description) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 |
# File 'lib/link_thumbnailer/graders/base.rb', line 9 def initialize(description) @config = ::LinkThumbnailer.page.config @description = description super(config) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/link_thumbnailer/graders/base.rb', line 7 def config @config end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
7 8 9 |
# File 'lib/link_thumbnailer/graders/base.rb', line 7 def description @description end |
Instance Method Details
#call(current_score) ⇒ Object
16 17 18 |
# File 'lib/link_thumbnailer/graders/base.rb', line 16 def call(current_score) fail NotImplementedError end |