Class: Lyra::Commands::DestroyCommand

Inherits:
Lyra::Command show all
Defined in:
lib/lyra/command.rb

Instance Attribute Summary

Attributes inherited from Lyra::Command

#data, #model_class

Instance Method Summary collapse

Methods inherited from Lyra::Command

#aggregate_id

Constructor Details

#initialize(model_class, id) ⇒ DestroyCommand



42
43
44
# File 'lib/lyra/command.rb', line 42

def initialize(model_class, id)
  super(model_class, id: id)
end

Instance Method Details

#id ⇒ Object



46
47
48
# File 'lib/lyra/command.rb', line 46

def id
  data[:id]
end