Class: Dispatch::BackgroundDispatch::Stats

Inherits:
Struct show all
Defined in:
lib/carat-dev/detach/detach.rb

Overview

Used for stats transparent back to the caller. This is done in seperate struct rather then just returning the unit object because it can easily be seralized and used on the local side of a DRb session

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

#apply_snapshot, #take_snapshot

Instance Attribute Details

#runningObject

Returns the value of attribute running

Returns:

  • (Object)

    the current value of running



147
148
149
# File 'lib/carat-dev/detach/detach.rb', line 147

def running
  @running
end

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



147
148
149
# File 'lib/carat-dev/detach/detach.rb', line 147

def start
  @start
end

#stopObject

Returns the value of attribute stop

Returns:

  • (Object)

    the current value of stop



147
148
149
# File 'lib/carat-dev/detach/detach.rb', line 147

def stop
  @stop
end