Sha256: 37cb9a6843d6163fe494deb52afa267dfd76a1ea7b8223947abbb1268093ca74

Contents?: true

Size: 721 Bytes

Versions: 2

Compression:

Stored size: 721 Bytes

Contents

# frozen_string_literal: true

require 'cequens/version'
require 'cequens/connection'
require 'cequens/errors'
require 'cequens/request'
require 'cequens/response'
require 'cequens/requests/send_sms_request'
require 'cequens/contracts/send_sms_contract'
require 'cequens/requests/get_sms_details_request'
require 'cequens/contracts/get_sms_details_contract'
require 'rails'

module Cequens
  class << self
    attr_accessor :access_token, :sender_name

    def config
      yield self
    end

    def send_sms(params, opts = {})
      Request.new('send_sms', params, opts).fire_request
    end

    def get_sms_details(params, opts = {})
      Request.new('get_sms_details', params, opts).fire_request
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cequens-0.1.2 lib/cequens.rb
cequens-0.1.1 lib/cequens.rb