Class: Atatus::Spies::MongoSpy::Subscriber Private

Inherits:
Object
  • Object
show all
Defined in:
lib/atatus/spies/mongo.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

TYPE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'db'
SUBTYPE =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'mongodb'
ACTION =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'query'

Instance Method Summary collapse

Constructor Details

#initializeSubscriber

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Subscriber.



42
43
44
# File 'lib/atatus/spies/mongo.rb', line 42

def initialize
  @events = {}
end

Instance Method Details

#failed(event) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



50
51
52
# File 'lib/atatus/spies/mongo.rb', line 50

def failed(event)
  pop_event(event)
end

#started(event) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



46
47
48
# File 'lib/atatus/spies/mongo.rb', line 46

def started(event)
  push_event(event)
end

#succeeded(event) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



54
55
56
# File 'lib/atatus/spies/mongo.rb', line 54

def succeeded(event)
  pop_event(event)
end