Class: JLDrill::Test::VocabularyView

Inherits:
ModifyVocabularyContext::VocabularyView show all
Defined in:
lib/jldrill/views/test/VocabularyView.rb

Instance Attribute Summary collapse

Attributes inherited from ModifyVocabularyContext::VocabularyView

#actionName, #vocabulary

Attributes inherited from Context::View

#context

Instance Method Summary collapse

Methods inherited from ModifyVocabularyContext::VocabularyView

#action, #showBusy, #update

Methods inherited from Context::View

#addView, #getWidget, #removeView, #removingViewFrom, #viewAddedTo

Constructor Details

#initialize(context, name) ⇒ VocabularyView

Returns a new instance of VocabularyView.



9
10
11
12
13
14
# File 'lib/jldrill/views/test/VocabularyView.rb', line 9

def initialize(context, name)
    super(context, name)
    @destroyed = false
    @searchUpdated = false
    @vocabularyCleared = false
end

Instance Attribute Details

#destroyedObject

Returns the value of attribute destroyed.



6
7
8
# File 'lib/jldrill/views/test/VocabularyView.rb', line 6

def destroyed
  @destroyed
end

#searchUpdatedObject

Returns the value of attribute searchUpdated.



6
7
8
# File 'lib/jldrill/views/test/VocabularyView.rb', line 6

def searchUpdated
  @searchUpdated
end

#vocabularyClearedObject

Returns the value of attribute vocabularyCleared.



6
7
8
# File 'lib/jldrill/views/test/VocabularyView.rb', line 6

def vocabularyCleared
  @vocabularyCleared
end

Instance Method Details

#clearVocabularyObject



28
29
30
# File 'lib/jldrill/views/test/VocabularyView.rb', line 28

def clearVocabulary
    @vocabularyCleared = true
end

#destroyObject



16
17
18
# File 'lib/jldrill/views/test/VocabularyView.rb', line 16

def destroy
    @destroyed = true
end

#getVocabularyObject



24
25
26
# File 'lib/jldrill/views/test/VocabularyView.rb', line 24

def getVocabulary
    # Not sure how to test this yet
end

#updateSearchObject



20
21
22
# File 'lib/jldrill/views/test/VocabularyView.rb', line 20

def updateSearch
    @searchUpdated = true
end