class Promotexter::Configuration
class cofiguration
Attributes
api_key[W]
api_secret[W]
async[RW]
dlr_callback[W]
dlr_report[RW]
sender_id[W]
Public Class Methods
new()
click to toggle source
# File lib/promotexter/configuration.rb, line 8 def initialize @api_key, @api_secret, @sender_id, @dlr_callback, @dlr_report, @async = nil end
Public Instance Methods
api_key()
click to toggle source
# File lib/promotexter/configuration.rb, line 12 def api_key raise Errors::Configuration, 'Promotexter api_key is missing! See documentation for configuration settings.' unless @api_key @api_key end
api_secret()
click to toggle source
# File lib/promotexter/configuration.rb, line 18 def api_secret raise Errors::Configuration, 'Promotexter api_secret is missing! See documentation for configuration settings.' unless @api_secret @api_secret end
dlr_callback()
click to toggle source
# File lib/promotexter/configuration.rb, line 30 def dlr_callback raise Errors::Configuration, 'Promotexter dlr_callback should have a valid value since dlr_report is set to true' if @dlr_report && @dlr_callback.blank? @dlr_callback end
sender_id()
click to toggle source
# File lib/promotexter/configuration.rb, line 24 def sender_id raise Errors::Configuration, 'Promotexter sender_id is missing! See documentation for configuration settings.' unless @sender_id @sender_id end