Class: Woody::Decorators::Collective
- Defined in:
- lib/woody/decorators/collective.rb
Instance Method Summary collapse
- #image_src(type = 'png') ⇒ Object
-
#initialize(model, config) ⇒ Collective
constructor
A new instance of Collective.
Methods inherited from Base
Constructor Details
#initialize(model, config) ⇒ Collective
Returns a new instance of Collective.
6 7 8 9 |
# File 'lib/woody/decorators/collective.rb', line 6 def initialize(model, config) @config = config super(model) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Woody::Decorators::Base
Instance Method Details
#image_src(type = 'png') ⇒ Object
11 12 13 |
# File 'lib/woody/decorators/collective.rb', line 11 def image_src(type = 'png') [s3_base, suffix(type)].join('/') end |