class SmsGlobal::NoSupportedMethod

Public Class Methods

new(method, allowed_methods) click to toggle source
# File lib/sms_global/exceptions.rb, line 22
def initialize(method, allowed_methods)
  @method = method
  @allowed_methods = allowed_methods
end

Public Instance Methods

message() click to toggle source
# File lib/sms_global/exceptions.rb, line 27
def message
  "#{method} method is currently not support. Allowed methods are: #{allowed_methods.join(', ')}"
end