Class: LearnWeb::Client::Event::Submission
- Inherits:
-
Object
- Object
- LearnWeb::Client::Event::Submission
- Includes:
- AttributePopulatable, ResponseParsable
- Defined in:
- lib/learn_web/client/event/submission.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ Submission
constructor
A new instance of Submission.
Methods included from ResponseParsable
Methods included from AttributePopulatable
Constructor Details
#initialize(response) ⇒ Submission
Returns a new instance of Submission.
11 12 13 14 15 |
# File 'lib/learn_web/client/event/submission.rb', line 11 def initialize(response) @response = response parse! end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
6 7 8 |
# File 'lib/learn_web/client/event/submission.rb', line 6 def data @data end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/learn_web/client/event/submission.rb', line 5 def response @response end |