Method: QueueBus::Subscriber::ClassMethods#app_key
- Defined in:
- lib/queue_bus/subscriber.rb
#app_key ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/queue_bus/subscriber.rb', line 14 def app_key return @app_key if @app_key @app_key = ::QueueBus.default_app_key return @app_key if @app_key # module or class_name val = self.name.to_s.split("::").first @app_key = ::QueueBus::Util.underscore(val) end |