module SmartSMS
Constants
- VERSION
Public Class Methods
active_record_protected_attributes?()
click to toggle source
# File lib/smart_sms.rb, line 18 def self.active_record_protected_attributes? @active_record_protected_attributes ||= ::ActiveRecord::VERSION::MAJOR < 4 || !!defined?(ProtectedAttributes) end
config()
click to toggle source
Global settings for SmartSMS
# File lib/smart_sms/config.rb, line 15 def self.config @config end
configure() { |config ||= configuration| ... }
click to toggle source
Configures global settings for SmartSMS
SmartSMS.configure do |config| config.api_key = 'd63124354422b046081a44466' end
# File lib/smart_sms/config.rb, line 10 def self.configure(&block) yield @config ||= SmartSMS::Configuration.new end