Class: LogStash::Api::Modules::Base
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- LogStash::Api::Modules::Base
- Includes:
- Util::Loggable
- Defined in:
- lib/logstash/api/modules/base.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#factory ⇒ Object
readonly
Returns the value of attribute factory.
Instance Method Summary collapse
-
#initialize(app = nil, agent) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(app = nil, agent) ⇒ Base
Returns a new instance of Base.
27 28 29 30 31 |
# File 'lib/logstash/api/modules/base.rb', line 27 def initialize(app=nil, agent) super(app) @agent = agent @factory = ::LogStash::Api::CommandFactory.new(LogStash::Api::Service.new(agent)) end |
Instance Attribute Details
#agent ⇒ Object (readonly)
Returns the value of attribute agent.
21 22 23 |
# File 'lib/logstash/api/modules/base.rb', line 21 def agent @agent end |
#factory ⇒ Object (readonly)
Returns the value of attribute factory.
21 22 23 |
# File 'lib/logstash/api/modules/base.rb', line 21 def factory @factory end |