Module: SmsManager

Extended by:
Configurable
Defined in:
lib/sms_manager.rb,
lib/sms_manager/client.rb,
lib/sms_manager/version.rb,
lib/sms_manager/configurable.rb,
lib/sms_manager/error/sending_error.rb,
lib/sms_manager/error/configuration_error.rb

Defined Under Namespace

Modules: Configurable Classes: Client, ConfigurationError, SendingError, Version

Instance Attribute Summary

Attributes included from Configurable

#hashed_password, #username

Class Method Summary collapse

Methods included from Configurable

configure

Class Method Details

.clientObject

delegate calls to client



9
10
11
12
# File 'lib/sms_manager.rb', line 9

def client
  return @client if instance_variable_defined?(:@client)
  @client = SmsManager::Client.new
end

.method_missing(method_name, *args, &block) ⇒ Object



14
15
16
17
# File 'lib/sms_manager.rb', line 14

def method_missing(method_name, *args, &block)
  return super unless respond_to_missing?(method_name)
  client.send(method_name, *args, &block)
end

.respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/sms_manager.rb', line 19

def respond_to_missing?(method_name, include_private=false)
  client.respond_to?(method_name, include_private)
end