Class: NewRelic::Agent::Commands::AgentCommand
- Inherits:
-
Object
- Object
- NewRelic::Agent::Commands::AgentCommand
- Defined in:
- lib/new_relic/agent/commands/agent_command.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(raw_collector_command) ⇒ AgentCommand
constructor
A new instance of AgentCommand.
Constructor Details
#initialize(raw_collector_command) ⇒ AgentCommand
Returns a new instance of AgentCommand.
11 12 13 14 15 |
# File 'lib/new_relic/agent/commands/agent_command.rb', line 11 def initialize(raw_collector_command) @id = raw_collector_command[0] @name = raw_collector_command[1]['name'] @arguments = raw_collector_command[1]['arguments'] end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
9 10 11 |
# File 'lib/new_relic/agent/commands/agent_command.rb', line 9 def arguments @arguments end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/new_relic/agent/commands/agent_command.rb', line 9 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/new_relic/agent/commands/agent_command.rb', line 9 def name @name end |