Module: Verb
Defined Under Namespace
Classes: Email, Message, SMS
Class Method Summary
collapse
Class Method Details
8
9
10
11
12
13
14
15
|
# File 'lib/verb.rb', line 8
def self.configure(api_key = nil, debug = false)
pieces = api_key.split('-')
raise ArgumentError, 'The provided API Token is invalid' if pieces.count != 2
@api_key = api_key
@debug = debug
end
|
.email(params = {}) ⇒ Object
17
18
19
|
# File 'lib/verb.rb', line 17
def self.email(params = {})
Email.new(@api_key, params, @debug)
end
|
.sms(params = {}) ⇒ Object
21
22
23
|
# File 'lib/verb.rb', line 21
def self.sms(params = {})
SMS.new(@api_key, params, @debug)
end
|