Module: Txtlocal

Defined in:
lib/txtlocal.rb,
lib/txtlocal/config.rb,
lib/txtlocal/message.rb,
lib/txtlocal/version.rb

Defined Under Namespace

Classes: Config, Message

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.configObject



7
8
9
10
11
12
13
# File 'lib/txtlocal.rb', line 7

def config
  @config ||= Config.new
  if block_given?
    yield @config
  end
  @config
end

.reset_configObject



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

def reset_config
  @config = nil
end

.send_message(message, recipients, options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/txtlocal.rb', line 19

def send_message(message, recipients, options={})
  msg = Txtlocal::Message.new(message, recipients, options)
  msg.send!
  msg
end