Module: Notisend
- Defined in:
- lib/notisend.rb,
lib/notisend/client.rb,
lib/notisend/errors.rb,
lib/notisend/version.rb,
lib/notisend/collection.rb,
lib/notisend/configuration.rb,
lib/notisend/resources/base.rb,
lib/notisend/resources/lists.rb,
lib/notisend/resources/balance.rb,
lib/notisend/resources/messages.rb,
lib/notisend/resources/segments.rb,
lib/notisend/resources/webhooks.rb,
lib/notisend/resources/campaigns.rb,
lib/notisend/resources/templates.rb,
lib/notisend/resources/parameters.rb,
lib/notisend/resources/recipients.rb,
lib/notisend/resources/organizations.rb
Overview
Defined Under Namespace
Modules: Resources
Classes: ApiError, BadRequest, Client, Collection, Configuration, ConfigurationError, ConnectionError, Error, Forbidden, NotFound, PreconditionFailed, SSLError, ServerError, TooManyRequests, Unauthorized, UnprocessableEntity
Constant Summary
collapse
- RESERVE_BASE_URL =
'https://api-reserve.msndr.net/v1'
- VERSION =
'0.1.0'
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
39
40
41
|
# File 'lib/notisend.rb', line 39
def client
@client ||= Client.new
end
|
.configuration ⇒ Object
30
31
32
|
# File 'lib/notisend.rb', line 30
def configuration
@configuration ||= Configuration.new
end
|
34
35
36
37
|
# File 'lib/notisend.rb', line 34
def configure
yield(configuration) if block_given?
configuration
end
|
.reset ⇒ Object
43
44
45
46
|
# File 'lib/notisend.rb', line 43
def reset
@configuration = nil
@client = nil
end
|