Sha256: 9d41b581552c9310f32e76ee73da4eae13c92462a7666a3cea471ae0f2aa67ef

Contents?: true

Size: 261 Bytes

Versions: 1

Compression:

Stored size: 261 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise_two_factor_authentication-3.0.0 spec/rails_app/lib/sms_provider.rb