Module: Cequens

Defined in:
lib/cequens.rb,
lib/cequens/errors.rb,
lib/cequens/request.rb,
lib/cequens/version.rb,
lib/cequens/response.rb,
lib/cequens/connection.rb,
lib/cequens/requests/send_sms_request.rb,
lib/cequens/contracts/send_sms_contract.rb,
lib/generators/cequens/config_generator.rb,
lib/cequens/requests/get_sms_details_request.rb,
lib/cequens/contracts/get_sms_details_contract.rb

Defined Under Namespace

Modules: Contracts, Generators, Requests Classes: Connection, InvalidCequensRequestError, Request, Response

Constant Summary collapse

VERSION =
'0.1.2'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token.



16
17
18
# File 'lib/cequens.rb', line 16

def access_token
  @access_token
end

.sender_nameObject

Returns the value of attribute sender_name.



16
17
18
# File 'lib/cequens.rb', line 16

def sender_name
  @sender_name
end

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Cequens)

    the object that the method was called on



18
19
20
# File 'lib/cequens.rb', line 18

def config
  yield self
end

.get_sms_details(params, opts = {}) ⇒ Object



26
27
28
# File 'lib/cequens.rb', line 26

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

.send_sms(params, opts = {}) ⇒ Object



22
23
24
# File 'lib/cequens.rb', line 22

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