Class: Clockwork::SMS::Response
- Inherits:
-
Object
- Object
- Clockwork::SMS::Response
- Defined in:
- lib/clockwork/sms/response.rb
Overview
A Clockwork::SMS::Response is returned for each SMS sent by Clockwork::SMS#deliver.
Instance Attribute Summary collapse
-
#error_code ⇒ string
The error code returned if the SMS fails.
-
#error_description ⇒ string
The error description returned if the SMS fails.
-
#message ⇒ Clockwork::SMS
The instance of Clockwork::SMS relating to this response.
-
#message_id ⇒ string
The message ID returned if the SMS is sent successfully.
-
#success ⇒ boolean
true
if the SMS is sent successfully,false
otherwise.
Instance Attribute Details
#error_code ⇒ string
The error code returned if the SMS fails.
11 12 13 |
# File 'lib/clockwork/sms/response.rb', line 11 def error_code @error_code end |
#error_description ⇒ string
The error description returned if the SMS fails.
16 17 18 |
# File 'lib/clockwork/sms/response.rb', line 16 def error_description @error_description end |
#message ⇒ Clockwork::SMS
The instance of Clockwork::SMS relating to this response.
26 27 28 |
# File 'lib/clockwork/sms/response.rb', line 26 def @message end |
#message_id ⇒ string
The message ID returned if the SMS is sent successfully.
21 22 23 |
# File 'lib/clockwork/sms/response.rb', line 21 def @message_id end |
#success ⇒ boolean
true
if the SMS is sent successfully, false
otherwise.
31 32 33 |
# File 'lib/clockwork/sms/response.rb', line 31 def success @success end |