Exception: SmsGlobal::NoSupportedMethod
- Inherits:
-
SmsGlobalError
- Object
- StandardError
- SmsGlobalError
- SmsGlobal::NoSupportedMethod
- Defined in:
- lib/sms_global/exceptions.rb
Instance Method Summary collapse
-
#initialize(method, allowed_methods) ⇒ NoSupportedMethod
constructor
A new instance of NoSupportedMethod.
- #message ⇒ Object
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
#message ⇒ Object
27 28 29 |
# File 'lib/sms_global/exceptions.rb', line 27 def "#{method} method is currently not support. Allowed methods are: #{allowed_methods.join(', ')}" end |