Class: SmsRu::Events::Test
- Inherits:
-
Object
- Object
- SmsRu::Events::Test
- Defined in:
- lib/sms_ru/events.rb
Overview
SMS.ru’s periodic heartbeat record (record type “test”).
Instance Attribute Summary collapse
-
#created_at ⇒ Time?
readonly
When SMS.ru sent the heartbeat.
-
#raw ⇒ Array<String>
readonly
Every line of the original record.
Instance Method Summary collapse
-
#type ⇒ String
The wire record type.
Instance Attribute Details
#created_at ⇒ Time? (readonly)
Returns when SMS.ru sent the heartbeat.
51 52 53 54 |
# File 'lib/sms_ru/events.rb', line 51 class Test < Data.define(:created_at, :raw) # @return [String] the wire record type def type = "test" end |
#raw ⇒ Array<String> (readonly)
Returns every line of the original record.
51 52 53 54 |
# File 'lib/sms_ru/events.rb', line 51 class Test < Data.define(:created_at, :raw) # @return [String] the wire record type def type = "test" end |
Instance Method Details
#type ⇒ String
Returns the wire record type.
53 |
# File 'lib/sms_ru/events.rb', line 53 def type = "test" |