Module: Rumeme

Defined in:
lib/rumeme.rb,
lib/rumeme/version.rb,
lib/rumeme/sms_reply.rb,
lib/rumeme/sms_message.rb,
lib/rumeme/configuration.rb,
lib/rumeme/sms_interface.rb,
lib/rumeme/message_status.rb,
lib/rumeme/validity_period.rb

Defined Under Namespace

Classes: Configuration, MessageStatus, SmsInterface, SmsMessage, SmsReply, ValidityPeriod

Constant Summary collapse

VERSION =
"0.4.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



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

def configuration
  @configuration
end

Class Method Details

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

Yields:



12
13
14
15
16
17
# File 'lib/rumeme.rb', line 12

def configure
  @configuration ||= Configuration.new
  yield @configuration

  raise 'unknown long_messages_strategy' unless [:split, :send, :cut].include?(@configuration.long_messages_strategy)
end