Class: Tagliani::Configuration::Redis

Inherits:
Struct
  • Object
show all
Defined in:
lib/tagliani/configuration/redis.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRedis

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

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



3
4
5
# File 'lib/tagliani/configuration/redis.rb', line 3

def length
  @length
end

#queueObject

Returns the value of attribute queue

Returns:

  • (Object)

    the current value of queue



3
4
5
# File 'lib/tagliani/configuration/redis.rb', line 3

def queue
  @queue
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



3
4
5
# File 'lib/tagliani/configuration/redis.rb', line 3

def url
  @url
end