Class: Omnes::Registry::Registration

Inherits:
Object
  • Object
show all
Defined in:
lib/omnes/registry.rb

Overview

Wraps the registration of an event

Instance Attribute Summary collapse

Instance Method Summary collapse

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_locationObject (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_nameObject (readonly)

Returns the value of attribute event_name.



15
16
17
# File 'lib/omnes/registry.rb', line 15

def event_name
  @event_name
end