Module: BunnyEvent::ClassMethods

Defined in:
lib/bunny_event.rb

Instance Method Summary collapse

Instance Method Details

#event_options(options) ⇒ Object

Class method to allow the setting of event options in the message definitions



10
11
12
# File 'lib/bunny_event.rb', line 10

def event_options(options)
  @options = options
end

#optionsObject

Class method for retreiving the data via the ‘MyMessage.class.options`



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

def options
  @options
end