Exception: Mongoid::Semaphore::UnsynchronizedAccess

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mongoid/semaphore.rb

Overview


Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(count, *args) ⇒ UnsynchronizedAccess

Returns a new instance of UnsynchronizedAccess.



12
13
14
15
# File 'lib/mongoid/semaphore.rb', line 12

def initialize(count, *args)
  @sema_count = count
  super(*args)
end

Instance Attribute Details

#sema_countObject (readonly)

Returns the value of attribute sema_count.



11
12
13
# File 'lib/mongoid/semaphore.rb', line 11

def sema_count
  @sema_count
end