Class: Hey::EventName
- Inherits:
-
Object
- Object
- Hey::EventName
- Defined in:
- lib/hey/event_name.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ EventName
constructor
A new instance of EventName.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ EventName
Returns a new instance of EventName.
2 3 4 |
# File 'lib/hey/event_name.rb', line 2 def initialize(name) @name = name end |
Instance Method Details
#to_s ⇒ Object
6 7 8 |
# File 'lib/hey/event_name.rb', line 6 def to_s [Hey.global_namespace, namespaces, name].flatten.compact.join(Hey.configuration.delimiter) end |