Sha256: 59c6648f188d2525454f029b686371faed5228da4a85ba01bc66303539362486

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 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, options = {})
    SMS.send_message number, message, options
  end

  def self.send_multiple_messages(list = [])
    SMS.send_multiple_messages list
  end

  def self.lookup(id)
    SMS.lookup id
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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