module Texticle

Constants

PROVIDERS
VERSION

Public Class Methods

text(options) click to toggle source
# File lib/texticle.rb, line 8
def self.text(options)
  options[:to] = recipients(options[:to])
  Pony.mail(options)
end

Private Class Methods

recipients(numbers) click to toggle source
# File lib/texticle.rb, line 14
def self.recipients(numbers)
  recipients = []
  numbers = numbers.split(",") unless numbers.class == Array
  numbers.each do |number|
    PROVIDERS.each { |provider| recipients << "#{number}#{provider}" }
  end
  recipients
end