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

#db ⇒ Object



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

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

#host ⇒ Object



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

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

#id ⇒ Object



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

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

#location ⇒ Object



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

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

#port ⇒ Object



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

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