Module: MockRedis::ConnectionMethod
- Included in:
- Database
- Defined in:
- lib/mock_redis/connection_method.rb
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/mock_redis/connection_method.rb', line 3 def connection { :host => @base.host, :port => @base.port, :db => @base.db, :id => @base.id, :location => "#{@base.host}:#{@base.port}" } end |