Class: Omnes::Registry::Registration
- Inherits:
-
Object
- Object
- Omnes::Registry::Registration
- Defined in:
- lib/omnes/registry.rb
Overview
Wraps the registration of an event
Instance Attribute Summary collapse
-
#caller_location ⇒ Object
readonly
Returns the value of attribute caller_location.
-
#event_name ⇒ Object
readonly
Returns the value of attribute event_name.
Instance Method Summary collapse
-
#initialize(event_name:, caller_location:) ⇒ Registration
constructor
A new instance of Registration.
Constructor Details
#initialize(event_name:, caller_location:) ⇒ Registration
Returns a new instance of Registration.
21 22 23 24 |
# File 'lib/omnes/registry.rb', line 21 def initialize(event_name:, caller_location:) @event_name = event_name @caller_location = caller_location end |
Instance Attribute Details
#caller_location ⇒ Object (readonly)
Returns the value of attribute caller_location.
19 20 21 |
# File 'lib/omnes/registry.rb', line 19 def caller_location @caller_location end |
#event_name ⇒ Object (readonly)
Returns the value of attribute event_name.
15 16 17 |
# File 'lib/omnes/registry.rb', line 15 def event_name @event_name end |