class Prisma::Server

Sinatra application for viewing request stats

Private Instance Methods

groups() click to toggle source
# File lib/prisma/server.rb, line 47
def groups
  Prisma.redis.lrange('configuration', 0, -1).map do |name|
    type = Prisma.redis.get("configuration:type:#{name}").to_sym
    description = Prisma.redis.get("configuration:description:#{name}")
    Prisma::Group.new(name: name, type: type, description: description)
  end
end