Class: Woody::Decorators::Submission

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

Instance Method Summary collapse

Methods inherited from Base

#initialize, #method_missing

Constructor Details

This class inherits a constructor from Woody::Decorators::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Woody::Decorators::Base

Instance Method Details

#challengeObject



8
9
10
11
12
# File 'lib/woody/decorators/submission.rb', line 8

def challenge
  @challenge ||= Woody::Decorators::Challenge.new(
    Wes::Data::API::Challenge.find(:id, @model.challenge_id)
  )
end