Sha256: 95ce149e6a37190433f8e209c8ab2076ac81e1d2f4972cfc0934005e410bf80d

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

require 'smscru/version'
require 'smscru/configuration'
require 'smscru/client'
require 'smscru/callback'

module Smscru
  extend SingleForwardable

  def_delegators :client, :send_message

  class << self
    attr_reader :config

    def configure(options={}, &block)
      @config = Configuration.new
      @config.update(options)
      yield @config if block_given?
    end

    def client
      @client ||= Client.new
    end
  end

  configure
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smscru-0.0.4 lib/smscru.rb
smscru-0.0.3 lib/smscru.rb