Two factor authentication extension for Devise
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
require 'ostruct' |
|
|
|
class SMSProvider |
|
Message = Class.new(OpenStruct) |
|
|
|
class_attribute :messages |
|
self.messages = [] |
|
|
|
def self.send_message(opts = {}) |
|
self.messages << Message.new(opts) |
|
end |
|
|
|
def self.last_message |
|
self.messages.last |
|
end |
|
|
|
end
|
|
|