Class: RedisWebManager::Connection

Inherits:
Base
  • Object
show all
Defined in:
lib/redis_web_manager/connection.rb

Instance Attribute Summary

Attributes inherited from Base

#instance

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from RedisWebManager::Base

Instance Method Details

#dbObject



13
14
15
# File 'lib/redis_web_manager/connection.rb', line 13

def db
  @db ||= connection[:db]
end

#hostObject



5
6
7
# File 'lib/redis_web_manager/connection.rb', line 5

def host
  @host ||= connection[:host]
end

#idObject



17
18
19
# File 'lib/redis_web_manager/connection.rb', line 17

def id
  @id ||= connection[:id]
end

#locationObject



21
22
23
# File 'lib/redis_web_manager/connection.rb', line 21

def location
  @location ||= connection[:location]
end

#portObject



9
10
11
# File 'lib/redis_web_manager/connection.rb', line 9

def port
  @port ||= connection[:port]
end