Class: RedisTest::Author

Inherits:
Object
  • Object
show all
Defined in:
lib/xamplr/tests/redis/author.rb

Instance Method Summary collapse

Instance Method Details

#init_hookObject



5
6
7
8
# File 'lib/xamplr/tests/redis/author.rb', line 5

def init_hook
  # called when initialized by xampl
  @invalidated = false
end

#invalidated?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/xamplr/tests/redis/author.rb', line 15

def invalidated?
  @invalidated
end

#note_invalidateObject



10
11
12
13
# File 'lib/xamplr/tests/redis/author.rb', line 10

def note_invalidate
  # called by xampl to note that this object is invalid
  @invalidated = true
end