Exception: SmsGlobal::NoSupportedMethod

Inherits:
SmsGlobalError show all
Defined in:
lib/sms_global/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(method, allowed_methods) ⇒ NoSupportedMethod

Returns a new instance of NoSupportedMethod.



22
23
24
25
# File 'lib/sms_global/exceptions.rb', line 22

def initialize(method, allowed_methods)
  @method = method
  @allowed_methods = allowed_methods
end

Instance Method Details

#messageObject



27
28
29
# File 'lib/sms_global/exceptions.rb', line 27

def message
  "#{method} method is currently not support. Allowed methods are: #{allowed_methods.join(', ')}"
end