Sha256: 9c42c2021e94d88fe31564cc6a7045f163e68877b0c5181aec47e165d25ed98f
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
module TwilioContactable class << self def mode @@mode ||= :test end def mode=(new_mode) @@mode = new_mode end def configured? return false unless configuration configuration.client_id && configuration.client_key end def configuration @@configuration ||= Configuration.new end def configure(&block) @@configuration = Configuration.new(&block) end end class Configuration attr_accessor :client_id attr_accessor :client_key attr_accessor :website_address attr_accessor :default_from_phone_number def initialize yield self end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twilio_contactable-0.8.0 | lib/configuration.rb |
twilio_contactable-0.7.6 | lib/configuration.rb |