Module SmsOnRails::ModelSupport::Draft::InstanceMethods
In: lib/sms_on_rails/model_support/draft.rb

Methods

Public Instance methods

if there is only one outbound message, return the actual (substituted) message. Otherwise, returns the draft message with substituted strings if any

The complete message with header and footer

Create Outbound Instances based on phone_numbers and options Refer to SmsOnRails::ModelSupport::Outbound.create_outbounds_from_phone

default the headers and footers

Deliver all the unsent outbound messages error - set this option to add an error message to the draft object

This is locked and safe for individual messages but the draft object itself is not locked down, so it can be processed by multiple threads

Deliver all outbound messages safely using optimisitic locking Progates any exception thrown

The length of the message This does not take into consideration substituted params TODO: adjust max length for substituted params

Protected Instance methods

validates the length of the message including the header and footer

[Validate]