Class: RailsLiveDashboard::Context

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rails_live_dashboard/context.rb

Instance Method Summary collapse

Instance Method Details

#batch_idObject



11
12
13
# File 'lib/rails_live_dashboard/context.rb', line 11

def batch_id
  @batch_id ||= SecureRandom.uuid
end

#resetObject



15
16
17
# File 'lib/rails_live_dashboard/context.rb', line 15

def reset
  @batch_id = nil
end

#startObject



7
8
9
# File 'lib/rails_live_dashboard/context.rb', line 7

def start
  @batch_id = SecureRandom.uuid
end