Class: SmsRu::Events::SmsStatus
- Inherits:
-
Object
- Object
- SmsRu::Events::SmsStatus
- Includes:
- DeliveryStatus
- Defined in:
- lib/sms_ru/events.rb
Overview
A delivery-status notification (record type “sms_status”).
Instance Attribute Summary collapse
-
#created_at ⇒ Time?
readonly
When SMS.ru created the status.
-
#id ⇒ String
readonly
The message id.
-
#raw ⇒ Array<String>
readonly
Every line of the original record.
-
#status_code ⇒ Integer?
readonly
The delivery status code (per /sms/status).
Instance Method Summary collapse
-
#type ⇒ String
The wire record type.
Methods included from DeliveryStatus
#delivered?, #failed?, #pending?
Instance Attribute Details
#created_at ⇒ Time? (readonly)
Returns when SMS.ru created the status.
17 18 19 20 21 22 |
# File 'lib/sms_ru/events.rb', line 17 class SmsStatus < Data.define(:id, :status_code, :created_at, :raw) include DeliveryStatus # @return [String] the wire record type def type = "sms_status" end |
#id ⇒ String (readonly)
Returns the message id.
17 18 19 20 21 22 |
# File 'lib/sms_ru/events.rb', line 17 class SmsStatus < Data.define(:id, :status_code, :created_at, :raw) include DeliveryStatus # @return [String] the wire record type def type = "sms_status" end |
#raw ⇒ Array<String> (readonly)
Returns every line of the original record.
17 18 19 20 21 22 |
# File 'lib/sms_ru/events.rb', line 17 class SmsStatus < Data.define(:id, :status_code, :created_at, :raw) include DeliveryStatus # @return [String] the wire record type def type = "sms_status" end |
#status_code ⇒ Integer? (readonly)
Returns the delivery status code (per /sms/status).
17 18 19 20 21 22 |
# File 'lib/sms_ru/events.rb', line 17 class SmsStatus < Data.define(:id, :status_code, :created_at, :raw) include DeliveryStatus # @return [String] the wire record type def type = "sms_status" end |
Instance Method Details
#type ⇒ String
Returns the wire record type.
21 |
# File 'lib/sms_ru/events.rb', line 21 def type = "sms_status" |