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.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(description, options = {}) ⇒ Base
constructor
A new instance of Base.
- #weight ⇒ Object
Constructor Details
#initialize(description, options = {}) ⇒ Base
Returns a new instance of Base.
11 12 13 14 15 16 17 |
# File 'lib/link_thumbnailer/graders/base.rb', line 11 def initialize(description, = {}) @config = ::LinkThumbnailer.page.config @description = description @options = super(config) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/link_thumbnailer/graders/base.rb', line 9 def config @config end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
9 10 11 |
# File 'lib/link_thumbnailer/graders/base.rb', line 9 def description @description end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/link_thumbnailer/graders/base.rb', line 9 def @options end |
Instance Method Details
#call ⇒ Object
19 20 21 |
# File 'lib/link_thumbnailer/graders/base.rb', line 19 def call fail NotImplementedError end |
#weight ⇒ Object
23 24 25 |
# File 'lib/link_thumbnailer/graders/base.rb', line 23 def weight .fetch(:weigth, 1) end |