Class: JLDrill::Test::StatisticsView
- Inherits:
-
ShowStatisticsContext::StatisticsView
- Object
- Context::View
- ShowStatisticsContext::StatisticsView
- JLDrill::Test::StatisticsView
- Defined in:
- lib/jldrill/views/test/StatisticsView.rb
Instance Attribute Summary collapse
-
#closed ⇒ Object
Returns the value of attribute closed.
-
#destroyed ⇒ Object
Returns the value of attribute destroyed.
-
#updated ⇒ Object
Returns the value of attribute updated.
Attributes inherited from ShowStatisticsContext::StatisticsView
Attributes inherited from Context::View
Instance Method Summary collapse
- #close ⇒ Object
- #destroy ⇒ Object
-
#initialize(context) ⇒ StatisticsView
constructor
A new instance of StatisticsView.
- #update(quiz) ⇒ Object
Methods inherited from ShowStatisticsContext::StatisticsView
Methods inherited from Context::View
#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo
Constructor Details
#initialize(context) ⇒ StatisticsView
Returns a new instance of StatisticsView.
10 11 12 13 14 15 |
# File 'lib/jldrill/views/test/StatisticsView.rb', line 10 def initialize(context) super(context) @closed = false @destroyed = false @updated = true end |
Instance Attribute Details
#closed ⇒ Object
Returns the value of attribute closed.
7 8 9 |
# File 'lib/jldrill/views/test/StatisticsView.rb', line 7 def closed @closed end |
#destroyed ⇒ Object
Returns the value of attribute destroyed.
7 8 9 |
# File 'lib/jldrill/views/test/StatisticsView.rb', line 7 def destroyed @destroyed end |
#updated ⇒ Object
Returns the value of attribute updated.
7 8 9 |
# File 'lib/jldrill/views/test/StatisticsView.rb', line 7 def updated @updated end |
Instance Method Details
#close ⇒ Object
17 18 19 20 |
# File 'lib/jldrill/views/test/StatisticsView.rb', line 17 def close @closed = true super end |
#destroy ⇒ Object
22 23 24 |
# File 'lib/jldrill/views/test/StatisticsView.rb', line 22 def destroy @destroyed = true end |
#update(quiz) ⇒ Object
26 27 28 29 |
# File 'lib/jldrill/views/test/StatisticsView.rb', line 26 def update(quiz) super(quiz) @updated = true end |