Sha256: 66c0770cc6667c6c2a77ebf629dbfc1b40ba861d48dc28c6e503f77a3a7a85f7

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 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(number, message, from = nil)
    SMS.send_message number, message, from
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zenvia-rb-0.0.11 lib/zenvia.rb