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.
18 lines
261 B
18 lines
261 B
11 years ago
|
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
|