Flockingbird/roost

View on GitHub
app/commands/member/invite_member.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

require 'app/aggregates/member'

module Commands
  module Member
    module InviteMember
      ##
      # Command to invite a new +Member+.
      class Command < ApplicationCommand
      end

      # Handler for InviteMember::Command
      class CommandHandler < ApplicationCommandHandler
        def aggregate_class
          Aggregates::Member
        end

        def aggregate_method
          :invite_member
        end
      end
    end
  end
end