Class: NewRelic::Agent::Commands::AgentCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/new_relic/agent/commands/agent_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject (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

#idObject (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

#nameObject (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