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.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Class Method Summary collapse
Instance Method Summary collapse
-
#recipients ⇒ Object
A CollectionResource of Recipient objects.
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
14 15 16 |
# File 'lib/tms_client/resource/voice_message.rb', line 14 def play_url @play_url 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
27 28 29 |
# File 'lib/tms_client/resource/voice_message.rb', line 27 def self.to_s "VoiceMessage" end |
Instance Method Details
#recipients ⇒ Object
A CollectionResource of Recipient objects
25 |
# File 'lib/tms_client/resource/voice_message.rb', line 25 collection_attributes :recipients |