Class: OneApm::Collector::Commands::AgentCommand
- Inherits:
-
Object
- Object
- OneApm::Collector::Commands::AgentCommand
- Defined in:
- lib/one_apm/collector/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.
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
#arguments ⇒ Object (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 |
#id ⇒ Object (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 |
#name ⇒ Object (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 |