Class: JLDrill::Test::StatisticsView

Inherits:
ShowStatisticsContext::StatisticsView show all
Defined in:
lib/jldrill/views/test/StatisticsView.rb

Instance Attribute Summary collapse

Attributes inherited from ShowStatisticsContext::StatisticsView

#quiz

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from ShowStatisticsContext::StatisticsView

#showBusy

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

#closedObject

Returns the value of attribute closed.



7
8
9
# File 'lib/jldrill/views/test/StatisticsView.rb', line 7

def closed
  @closed
end

#destroyedObject

Returns the value of attribute destroyed.



7
8
9
# File 'lib/jldrill/views/test/StatisticsView.rb', line 7

def destroyed
  @destroyed
end

#updatedObject

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

#closeObject



17
18
19
20
# File 'lib/jldrill/views/test/StatisticsView.rb', line 17

def close
          @closed = true
          super
end

#destroyObject



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