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.
9 10 11 12 13 14 15 |
# File 'lib/link_thumbnailer/graders/base.rb', line 9 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.
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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/link_thumbnailer/graders/base.rb', line 7 def @options end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'lib/link_thumbnailer/graders/base.rb', line 17 def call fail NotImplementedError end |
#weight ⇒ Object
21 22 23 |
# File 'lib/link_thumbnailer/graders/base.rb', line 21 def weight .fetch(:weigth, 1) end |