class Undead::Command
Attributes
args[RW]
id[R]
name[R]
Public Class Methods
new(name, *args)
click to toggle source
# File lib/undead/command.rb, line 10 def initialize(name, *args) @id = SecureRandom.uuid @name = name @args = args end
Public Instance Methods
message()
click to toggle source
# File lib/undead/command.rb, line 16 def message JSON.dump({ 'id' => @id, 'name' => @name, 'args' => @args }) end