Class: EvilEvents::Core::Events::EventExtensions::ClassSignature::Signature Private
- Inherits:
-
Object
- Object
- EvilEvents::Core::Events::EventExtensions::ClassSignature::Signature
- Defined in:
- lib/evil_events/core/events/event_extensions/class_signature/signature.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #event_class ⇒ Class{EvilEvents::Core::Events::AbstractEvent} readonly private
Instance Method Summary collapse
- #==(other) ⇒ Boolean (also: #eql?) private
- #adapter_stamp ⇒ Hash private
- #class_stamp ⇒ Hash private
- #delegator_stamp ⇒ Symbol, String private
-
#initialize(event_class) ⇒ Signature
constructor
private
A new instance of Signature.
- #metadata_stamp ⇒ Hash private
- #payload_stamp ⇒ Hash private
- #type_alias_stamp ⇒ String private
Constructor Details
#initialize(event_class) ⇒ Signature
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Signature.
15 16 17 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/signature.rb', line 15 def initialize(event_class) @event_class = event_class end |
Instance Attribute Details
#event_class ⇒ Class{EvilEvents::Core::Events::AbstractEvent} (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/signature.rb', line 10 def event_class @event_class end |
Instance Method Details
#==(other) ⇒ Boolean Also known as: eql?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
65 66 67 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/signature.rb', line 65 def ==(other) Equalizer.new(self, other).similar_signatures? end |
#adapter_stamp ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
57 58 59 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/signature.rb', line 57 def adapter_stamp { event_class.adapter_name => event_class.adapter } end |
#class_stamp ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
36 37 38 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/signature.rb', line 36 def class_stamp { name: event_class.name, creation_strategy: event_class.__creation_strategy__ } end |
#delegator_stamp ⇒ Symbol, String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
50 51 52 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/signature.rb', line 50 def delegator_stamp event_class.default_delegator end |
#metadata_stamp ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
29 30 31 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/signature.rb', line 29 def event_class::Metadata.schema end |
#payload_stamp ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/signature.rb', line 22 def payload_stamp event_class::Payload.schema end |
#type_alias_stamp ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 |
# File 'lib/evil_events/core/events/event_extensions/class_signature/signature.rb', line 43 def type_alias_stamp event_class.type end |