Class: Woody::Decorators::Brand
- Defined in:
- lib/woody/decorators/brand.rb
Instance Method Summary collapse
- #challenges ⇒ Object
-
#initialize(model, config) ⇒ Brand
constructor
A new instance of Brand.
Methods inherited from Base
Constructor Details
#initialize(model, config) ⇒ Brand
Returns a new instance of Brand.
7 8 9 10 |
# File 'lib/woody/decorators/brand.rb', line 7 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
#challenges ⇒ Object
12 13 14 15 16 |
# File 'lib/woody/decorators/brand.rb', line 12 def challenges @model.challenges.map do |c| Challenge.new(c, @config) end end |