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



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

def check_active
	!!state
end

#dataObject



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

def data
	@contract.object_state&.data
end

#stateObject



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

def state
	@contract.object_state
end