Class: TMS::SmsMessage
- Inherits:
-
Object
- Object
- TMS::SmsMessage
- Includes:
- InstanceResource
- Defined in:
- lib/tms_client/resource/sms_message.rb
Overview
An SMSMessage is used to create and send a text message to a collection of Recipient objects.
Instance Attribute Summary collapse
-
#body ⇒ String
The content of the SMS.
-
#completed_at ⇒ Object
readonly
Returns the value of attribute completed_at.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#recipients ⇒ Object
A CollectionResource of Recipient objects.
Methods included from InstanceResource
Instance Attribute Details
#body ⇒ String
The content of the SMS. This field will be truncated to 160 characters.
13 14 15 |
# File 'lib/tms_client/resource/sms_message.rb', line 13 def body @body end |
#completed_at ⇒ Object (readonly)
Returns the value of attribute completed_at.
1 2 3 |
# File 'lib/tms_client/resource/sms_message.rb', line 1 def completed_at @completed_at end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
1 2 3 |
# File 'lib/tms_client/resource/sms_message.rb', line 1 def created_at @created_at end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
1 2 3 |
# File 'lib/tms_client/resource/sms_message.rb', line 1 def status @status end |
Instance Method Details
#recipients ⇒ Object
A CollectionResource of Recipient objects
24 |
# File 'lib/tms_client/resource/sms_message.rb', line 24 collection_attributes :recipients |