Sha256: 63e90422ca26aadb29ad632f0684695498a3ba6ba959435df174687d78529610

Contents?: true

Size: 375 Bytes

Versions: 13

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

module RedisWebManager
  class InformationController < ApplicationController
    # GET /information
    def index
      @information = stats.map { |k, v| { name: k.to_s.humanize, value: v } }
      @status = info.status
      @url = connection.id
    end

    private

    def stats
      @stats ||= info.stats.symbolize_keys
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
redis_web_manager-0.4.0 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.3.9 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.3.8 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.3.6 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.3.5 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.3.4 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.3.3 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.3.2 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.3.1 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.3.0 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.2.1 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.2.0 app/controllers/redis_web_manager/information_controller.rb
redis_web_manager-0.1.8 app/controllers/redis_web_manager/information_controller.rb