hyperoslo / cellular

Sending and receiving SMSs with Ruby through pluggable backends.
Other
20 stars 6 forks source link

Introduce Cellular::Backend as a base for all backends #3

Closed timkurvers closed 3 years ago

timkurvers commented 10 years ago

Proposal to deprecate Cellular::Backends and introduce:

class Cellular::Backend
  def deliver(...)
    raise NotImplementedError  
  end
end

class Cellular::Backend::HyperSMS < Cellular::Backend; end

For backwards compatibility we could point Cellular::Backends to Cellular::Backend.

sindrenm commented 10 years ago

Yeah, this seems like a good idea. That would also get rid of that pesky autoload. We should definitely do this! :+1: