Class: LittleSMS
- Inherits:
-
Object
- Object
- LittleSMS
- Defined in:
- lib/little_sms.rb,
lib/little_sms/responce.rb,
lib/little_sms/component.rb,
lib/little_sms/little_sms.rb
Defined Under Namespace
Class Attribute Summary collapse
-
.use_ssl ⇒ Object
Returns the value of attribute use_ssl.
Instance Method Summary collapse
-
#initialize(api_user, api_key, &block) ⇒ LittleSMS
constructor
A new instance of LittleSMS.
- #method_missing(name, *args) ⇒ Object
Constructor Details
#initialize(api_user, api_key, &block) ⇒ LittleSMS
Returns a new instance of LittleSMS.
8 9 10 11 12 |
# File 'lib/little_sms/little_sms.rb', line 8 def initialize(api_user, api_key, &block) @api_user, @api_key = api_user, api_key @components = {} self.instance_eval &block if block_given? end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Class Attribute Details
.use_ssl ⇒ Object
Returns the value of attribute use_ssl.
3 4 5 |
# File 'lib/little_sms/little_sms.rb', line 3 def use_ssl @use_ssl end |