Class: Hey::EventName

Inherits:
Object
  • Object
show all
Defined in:
lib/hey/event_name.rb

Instance Method Summary collapse

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_sObject



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