Class: SmsRu::Events::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/sms_ru/events.rb

Overview

SMS.ru’s periodic heartbeat record (record type “test”).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created_atTime? (readonly)

Returns when SMS.ru sent the heartbeat.

Returns:

  • (Time, nil)

    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

#rawArray<String> (readonly)

Returns every line of the original record.

Returns:

  • (Array<String>)

    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

#typeString

Returns the wire record type.

Returns:

  • (String)

    the wire record type



53
# File 'lib/sms_ru/events.rb', line 53

def type = "test"