Class: Tagliani::Configuration::Redis
- Inherits:
-
Struct
- Object
- Struct
- Tagliani::Configuration::Redis
- Defined in:
- lib/tagliani/configuration/redis.rb
Instance Attribute Summary collapse
-
#length ⇒ Object
Returns the value of attribute length.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Redis
constructor
A new instance of Redis.
Constructor Details
#initialize ⇒ Redis
Returns a new instance of Redis.
4 5 6 7 8 |
# File 'lib/tagliani/configuration/redis.rb', line 4 def initialize self.url = "redis://localhost:6379/tagliani" self.queue = "tagliani" self.length = 200 end |
Instance Attribute Details
#length ⇒ Object
Returns the value of attribute length
3 4 5 |
# File 'lib/tagliani/configuration/redis.rb', line 3 def length @length end |
#queue ⇒ Object
Returns the value of attribute queue
3 4 5 |
# File 'lib/tagliani/configuration/redis.rb', line 3 def queue @queue end |
#url ⇒ Object
Returns the value of attribute url
3 4 5 |
# File 'lib/tagliani/configuration/redis.rb', line 3 def url @url end |