Module: MobileTextAlerts

Defined in:
lib/mobile_text_alerts.rb,
lib/mobile_text_alerts/utils.rb,
lib/mobile_text_alerts/client.rb,
lib/mobile_text_alerts/version.rb,
lib/mobile_text_alerts/actions/mms.rb,
lib/mobile_text_alerts/actions/sms.rb,
lib/mobile_text_alerts/actions/tts.rb,
lib/mobile_text_alerts/actions/group.rb,
lib/mobile_text_alerts/actions/member.rb

Defined Under Namespace

Modules: Actions, Utils Classes: Client, Configuration, Error

Constant Summary collapse

VERSION =
'0.1.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration


8
9
10
# File 'lib/mobile_text_alerts.rb', line 8

def configuration
  @configuration
end

Class Method Details

.configure {|@configuration| ... } ⇒ Object

Yields:


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

def configure
  @configuration ||= Configuration.new
  yield(@configuration)
end

.newObject


10
11
12
13
# File 'lib/mobile_text_alerts.rb', line 10

def new
  @configuration ||= Configuration.new
  MobileTextAlerts::Client.new(@configuration.api_key)
end