class Post

Public Class Methods

new(command) click to toggle source
Calls superclass method Sequent::Core::AggregateRoot::new
# File lib/sequent/generator/template_project/lib/post/post.rb, line 2
def initialize(command)
  super(command.aggregate_id)
  apply PostAdded
  apply PostAuthorChanged, author: command.author
  apply PostTitleChanged, title: command.title
  apply PostContentChanged, content: command.content
end