Method: Condition::Reader::RedisReader#read_sheet

Defined in:
lib/condition/reader/redis_reader.rb

#read_sheet(path, sheet_index) ⇒ Object



11
12
13
14
15
# File 'lib/condition/reader/redis_reader.rb', line 11

def read_sheet(path, sheet_index)
  data = @redis.get(path)
  raise "redis key name #{path} not found" if data.nil? || data == ""
  JSON.parse(data, {:symbolize_names => true})
end