Class: Messaging::Controls::Handler::Settings::Example

Inherits:
Object
  • Object
show all
Includes:
Handle
Defined in:
lib/messaging/controls/handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Handle

#call, #handle_message, #handle_message_data, included, #strict

Instance Attribute Details

#some_other_settingObject

Returns the value of attribute some_other_setting.



113
114
115
# File 'lib/messaging/controls/handler.rb', line 113

def some_other_setting
  @some_other_setting
end

Instance Method Details

#handle(message_data) ⇒ Object

Raises:



115
116
117
# File 'lib/messaging/controls/handler.rb', line 115

def handle(message_data)
  raise Settings::Error if some_setting.nil?
end