Class: RedisRing::WebInterface

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/redis_ring/web_interface.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.masterObject

Returns the value of attribute master.



72
73
74
# File 'lib/redis_ring/web_interface.rb', line 72

def master
  @master
end

.slaveObject

Returns the value of attribute slave.



72
73
74
# File 'lib/redis_ring/web_interface.rb', line 72

def slave
  @slave
end

Instance Method Details

#masterObject



34
35
36
# File 'lib/redis_ring/web_interface.rb', line 34

def master
  self.class.master
end

#slaveObject



38
39
40
# File 'lib/redis_ring/web_interface.rb', line 38

def slave
  self.class.slave
end