Class: OneApm::Collector::Commands::AgentCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/one_apm/collector/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.



9
10
11
12
13
# File 'lib/one_apm/collector/commands/agent_command.rb', line 9

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.



7
8
9
# File 'lib/one_apm/collector/commands/agent_command.rb', line 7

def arguments
  @arguments
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/one_apm/collector/commands/agent_command.rb', line 7

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/one_apm/collector/commands/agent_command.rb', line 7

def name
  @name
end