Class: Woody::Decorators::Collective

Inherits:
Base
  • Object
show all
Defined in:
lib/woody/decorators/collective.rb

Instance Method Summary collapse

Methods inherited from Base

#method_missing

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