Class: Lyra::Commands::CreateCommand

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, attributes) ⇒ CreateCommand

Returns a new instance of CreateCommand.



18
19
20
# File 'lib/lyra/command.rb', line 18

def initialize(model_class, attributes)
  super(model_class, attributes)
end

Instance Method Details

#attributesObject



22
23
24
# File 'lib/lyra/command.rb', line 22

def attributes
  data
end