Class: EventMachine::Kannel
- Inherits:
-
Object
- Object
- EventMachine::Kannel
- Defined in:
- lib/em-kannel.rb,
lib/em-kannel/client.rb,
lib/em-kannel/message.rb,
lib/em-kannel/version.rb,
lib/em-kannel/response.rb,
lib/em-kannel/log_message.rb,
lib/em-kannel/test_helper.rb,
lib/em-kannel/validations.rb,
lib/em-kannel/configuration.rb
Defined Under Namespace
Modules: Validations Classes: Client, Configuration, LogMessage, Message, Response
Constant Summary collapse
- VERSION =
"0.2.1"
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configuration_options = {}) ⇒ Kannel
constructor
A new instance of Kannel.
- #send_sms(message_options, &block) ⇒ Object
Constructor Details
#initialize(configuration_options = {}) ⇒ Kannel
Returns a new instance of Kannel.
17 18 19 |
# File 'lib/em-kannel.rb', line 17 def initialize(={}) self.configuration = Configuration.new() end |
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
15 16 17 |
# File 'lib/em-kannel.rb', line 15 def configuration @configuration end |
Class Method Details
.deliveries ⇒ Object
5 6 7 |
# File 'lib/em-kannel/test_helper.rb', line 5 def self.deliveries @deliveries ||= [] end |
.logger ⇒ Object
21 22 23 |
# File 'lib/em-kannel.rb', line 21 def self.logger @logger ||= Logger.new(STDOUT) end |
.logger=(new_logger) ⇒ Object
25 26 27 |
# File 'lib/em-kannel.rb', line 25 def self.logger=(new_logger) @logger = new_logger end |