Sha256: 457718e4c1d994f6ac55340116f7fc8fccbacdc217b87558936a595be4e9bca0
Contents?: true
Size: 582 Bytes
Versions: 3
Compression:
Stored size: 582 Bytes
Contents
require 'sms_manager/configurable' require "sms_manager/client" module SmsManager class << self include Configurable # delegate calls to client def client return @client if instance_variable_defined?(:@client) @client = SmsManager::Client.new end def method_missing(method_name, *args, &block) return super unless respond_to_missing?(method_name) client.send(method_name, *args, &block) end def respond_to_missing?(method_name, include_private=false) client.respond_to?(method_name, include_private) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sms_manager-0.1.2 | lib/sms_manager.rb |
sms_manager-0.1.1 | lib/sms_manager.rb |
sms_manager-0.1.0 | lib/sms_manager.rb |