Class: LearnWeb::Client::Lesson::CurrentStatus

Inherits:
Object
  • Object
show all
Includes:
AttributePopulatable, ResponseParsable
Defined in:
lib/learn_web/client/lesson/current_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ResponseParsable

included

Methods included from AttributePopulatable

included

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

#dataObject

Returns the value of attribute data.



6
7
8
# File 'lib/learn_web/client/lesson/current_status.rb', line 6

def data
  @data
end

#lightsObject

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_timeObject

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

#responseObject (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

#startedObject

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_workingObject

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

#titleObject

Returns the value of attribute title.



6
7
8
# File 'lib/learn_web/client/lesson/current_status.rb', line 6

def title
  @title
end