Class: Resque::Plugins::Logstash::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/resque/logstash/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



6
7
8
9
10
# File 'lib/resque/logstash/config.rb', line 6

def initialize
  @transport = Transport::Redis.new('localhost', 6379)
  @disabled = false
  @tags = []
end

Instance Attribute Details

#disabledObject

Returns the value of attribute disabled.



4
5
6
# File 'lib/resque/logstash/config.rb', line 4

def disabled
  @disabled
end

#tagsObject

Returns the value of attribute tags.



4
5
6
# File 'lib/resque/logstash/config.rb', line 4

def tags
  @tags
end

#transportObject

Returns the value of attribute transport.



4
5
6
# File 'lib/resque/logstash/config.rb', line 4

def transport
  @transport
end

Instance Method Details

#disabled?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/resque/logstash/config.rb', line 12

def disabled?
  disabled
end