class Twilivery::Configuration

Attributes

account_sid[RW]
auth_token[RW]
default_country_code[RW]
default_sms_sender[RW]

Public Class Methods

new() click to toggle source
# File lib/twilivery.rb, line 21
def initialize
  set_defaults
end

Public Instance Methods

set_defaults() click to toggle source
# File lib/twilivery.rb, line 25
def set_defaults
  @account_sid = ENV.fetch('TWILIO_ACCOUNT_SID') { '' }
  @auth_token = ENV.fetch('TWILIO_AUTH_TOKEN') { nil }
  @default_sms_sender = ENV.fetch('TWILIO_SMS_SENDER') { nil }
  @default_country_code = ENV.fetch('TWILIO_COUNTRY_CODE') { nil }
end