Sha256: d1ecfe8124cc16258891a00bb28f94abd50819c8ff8fd4b0b0b888680317541f
Contents?: true
Size: 335 Bytes
Versions: 3
Compression:
Stored size: 335 Bytes
Contents
module Aggro # Public: Mixin to turn a PORO into an Aggro command. module Command extend ActiveSupport::Concern include AttributeDSL included do generate_id :causation_id generate_id :correlation_id end def to_details { name: model_name.name, args: serialized_attributes } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aggro-0.0.4 | lib/aggro/command.rb |
aggro-0.0.3 | lib/aggro/command.rb |
aggro-0.0.2 | lib/aggro/command.rb |