Class: Hakuban::ObjectObserve::ManagedObject

Inherits:
ManagedObjectBase show all
Defined in:
lib/hakuban/manager.rb

Instance Attribute Summary

Attributes inherited from ManagedObjectBase

#async, #current_delay_index, #descriptor, #earliest_next_run, #last_exception_at, #running

Instance Method Summary collapse

Methods inherited from ManagedObjectBase

#change, #initialize, #next_change, #next_event, #run, #stop

Constructor Details

This class inherits a constructor from Hakuban::ManagedObjectBase

Instance Method Details

#check_activeObject



240
241
242
# File 'lib/hakuban/manager.rb', line 240

def check_active
  !!state
end

#dataObject



236
237
238
# File 'lib/hakuban/manager.rb', line 236

def data
  @contract.object_state&.data
end

#stateObject



232
233
234
# File 'lib/hakuban/manager.rb', line 232

def state
  @contract.object_state
end