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



243
244
245
# File 'lib/hakuban/manager.rb', line 243

def check_active
  !!state
end

#dataObject



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

def data
  @contract.object_state&.data
end

#stateObject



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

def state
  @contract.object_state
end