Class: LearnWeb::Client::Lesson::CurrentStatus
- Inherits:
-
Object
- Object
- LearnWeb::Client::Lesson::CurrentStatus
- Includes:
- AttributePopulatable, ResponseParsable
- Defined in:
- lib/learn_web/client/lesson/current_status.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#lights ⇒ Object
Returns the value of attribute lights.
-
#median_completion_time ⇒ Object
Returns the value of attribute median_completion_time.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#started ⇒ Object
Returns the value of attribute started.
-
#students_working ⇒ Object
Returns the value of attribute students_working.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(response) ⇒ CurrentStatus
constructor
A new instance of CurrentStatus.
Methods included from ResponseParsable
Methods included from AttributePopulatable
Constructor Details
#initialize(response) ⇒ CurrentStatus
Returns a new instance of CurrentStatus.
12 13 14 15 16 |
# File 'lib/learn_web/client/lesson/current_status.rb', line 12 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/lesson/current_status.rb', line 6 def data @data end |
#lights ⇒ Object
Returns the value of attribute lights.
6 7 8 |
# File 'lib/learn_web/client/lesson/current_status.rb', line 6 def lights @lights end |
#median_completion_time ⇒ Object
Returns the value of attribute median_completion_time.
6 7 8 |
# File 'lib/learn_web/client/lesson/current_status.rb', line 6 def median_completion_time @median_completion_time end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/learn_web/client/lesson/current_status.rb', line 5 def response @response end |
#started ⇒ Object
Returns the value of attribute started.
6 7 8 |
# File 'lib/learn_web/client/lesson/current_status.rb', line 6 def started @started end |
#students_working ⇒ Object
Returns the value of attribute students_working.
6 7 8 |
# File 'lib/learn_web/client/lesson/current_status.rb', line 6 def students_working @students_working end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/learn_web/client/lesson/current_status.rb', line 6 def title @title end |