Class: CarbonMU::CommandContext

Inherits:
Object
  • Object
show all
Defined in:
lib/core/command_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ CommandContext

Returns a new instance of CommandContext.


5
6
7
8
9
# File 'lib/core/command_context.rb', line 5

def initialize(opts)
  @enacting_connection_id = opts[:enacting_connection_id] || nil
  @raw_command = opts[:raw_command] || ""
  @params = opts[:params] || {}
end

Instance Attribute Details

#enacting_connection_idObject (readonly)

Returns the value of attribute enacting_connection_id


3
4
5
# File 'lib/core/command_context.rb', line 3

def enacting_connection_id
  @enacting_connection_id
end

#paramsObject (readonly)

Returns the value of attribute params


3
4
5
# File 'lib/core/command_context.rb', line 3

def params
  @params
end

#raw_commandObject (readonly)

Returns the value of attribute raw_command


3
4
5
# File 'lib/core/command_context.rb', line 3

def raw_command
  @raw_command
end