Module: RSpeed::Database

Defined in:
lib/rspeed/database.rb

Class Method Summary collapse

Class Method Details

.list(key) ⇒ Object



15
16
17
# File 'lib/rspeed/database.rb', line 15

def list(key)
  RSpeed::Redis.list(key).map { |item| JSON.parse(item, symbolize_names: true) }
end

.previous_resultObject



7
8
9
# File 'lib/rspeed/database.rb', line 7

def previous_result
  list(RSpeed::Variable.previous_result)
end

.resultObject



11
12
13
# File 'lib/rspeed/database.rb', line 11

def result
  list(RSpeed::Variable.result)
end