Class: TMS::VoiceMessage
- Inherits:
-
Object
- Object
- TMS::VoiceMessage
- Includes:
- InstanceResource
- Defined in:
- lib/tms_client/resource/voice_message.rb
Overview
A VoiceMessage is used to create and send a voice message to a collection of Recipient objects. The recipients are called and the provided play_url is played to them. Accepted sound formats include wav, mp3, and aiff.
Instance Attribute Summary collapse
-
#completed_at ⇒ Object
readonly
Returns the value of attribute completed_at.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#play_url ⇒ String
The url to the sound file to be played back to the call recipients.
-
#say_text ⇒ String
A string to be read (and repeated on request) to the call recipients.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Attributes included from InstanceResource
Class Method Summary collapse
Instance Method Summary collapse
-
#failed ⇒ Object
A CollectionResource of Recipients that failed.
-
#recipients ⇒ Object
A CollectionResource of Recipient objects.
-
#sent ⇒ Object
A CollectionResource of Recipients that sent successfully.
Methods included from InstanceResource
Instance Attribute Details
#completed_at ⇒ Object (readonly)
Returns the value of attribute completed_at.
1 2 3 |
# File 'lib/tms_client/resource/voice_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/voice_message.rb', line 1 def created_at @created_at end |
#play_url ⇒ String
The url to the sound file to be played back to the call recipients
15 16 17 |
# File 'lib/tms_client/resource/voice_message.rb', line 15 def play_url @play_url end |
#say_text ⇒ String
A string to be read (and repeated on request) to the call recipients.
15 16 17 |
# File 'lib/tms_client/resource/voice_message.rb', line 15 def say_text @say_text end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
1 2 3 |
# File 'lib/tms_client/resource/voice_message.rb', line 1 def status @status end |
Class Method Details
.to_s ⇒ Object
36 37 38 |
# File 'lib/tms_client/resource/voice_message.rb', line 36 def self.to_s "VoiceMessage" end |
Instance Method Details
#failed ⇒ Object
A CollectionResource of Recipients that failed
34 |
# File 'lib/tms_client/resource/voice_message.rb', line 34 collection_attribute :failed, 'Recipients' |
#recipients ⇒ Object
A CollectionResource of Recipient objects
26 |
# File 'lib/tms_client/resource/voice_message.rb', line 26 collection_attributes :recipients |
#sent ⇒ Object
A CollectionResource of Recipients that sent successfully
30 |
# File 'lib/tms_client/resource/voice_message.rb', line 30 collection_attribute :sent, 'Recipients' |