Class: TestBench::Telemetry::EventData

Inherits:
Struct
  • Object
show all
Defined in:
lib/test_bench/telemetry/event_data.rb,
lib/test_bench/telemetry/event_data/serialization.rb

Defined Under Namespace

Modules: Serialization

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



3
4
5
# File 'lib/test_bench/telemetry/event_data.rb', line 3

def data
  @data
end

#process_idObject

Returns the value of attribute process_id

Returns:

  • (Object)

    the current value of process_id



3
4
5
# File 'lib/test_bench/telemetry/event_data.rb', line 3

def process_id
  @process_id
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



3
4
5
# File 'lib/test_bench/telemetry/event_data.rb', line 3

def time
  @time
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



3
4
5
# File 'lib/test_bench/telemetry/event_data.rb', line 3

def type
  @type
end

Class Method Details

.load(text) ⇒ Object



4
5
6
# File 'lib/test_bench/telemetry/event_data.rb', line 4

def self.load(text)
  EventData::Serialization.load(text)
end

Instance Method Details

#dumpObject



8
9
10
# File 'lib/test_bench/telemetry/event_data.rb', line 8

def dump
  EventData::Serialization.dump(self)
end