Sha256: bd9f30e5103cdabff3131fdbf42a6c73581153e04560b314933689e043b8397b

Contents?: true

Size: 396 Bytes

Versions: 4

Compression:

Stored size: 396 Bytes

Contents

require "zenvia/version"
require 'zenvia/config'
require 'zenvia/sms'

module Zenvia
  # block of configuration
  def self.configure
    yield self.config
  end

  # alias for Zenvia::Config
  def self.config
    @config ||= Config.new
  end

  # alias for Zenvia::SMS.send_message(*args)
  def self.send_message(from = nil, number, message)
    SMS.send_message(from, number, message)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zenvia-rb-0.0.10 lib/zenvia.rb
zenvia-rb-0.0.9 lib/zenvia.rb
zenvia-rb-0.0.8 lib/zenvia.rb
zenvia-rb-0.0.7 lib/zenvia.rb