Sha256: 3e4f2fb1c7b8946bd3da38846920c3b98db09f1eb58436fd2eb95f250bb007d4

Contents?: true

Size: 738 Bytes

Versions: 3

Compression:

Stored size: 738 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'
require 'byebug'

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

3 entries across 3 versions & 1 rubygems

Version Path
cequens-0.1.0 lib/cequens.rb
cequens-0.0.9 lib/cequens.rb
cequens-0.0.8 lib/cequens.rb