Class: Google::Apis::GenomicsV2alpha1::TimestampedEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/genomics_v2alpha1/classes.rb,
lib/google/apis/genomics_v2alpha1/representations.rb,
lib/google/apis/genomics_v2alpha1/representations.rb

Overview

An event that occured in the operation assigned to the worker and the time of occurance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimestampedEvent

Returns a new instance of TimestampedEvent.



1289
1290
1291
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1289

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#dataHash<String,Object>

The event data. Corresponds to the JSON property data

Returns:

  • (Hash<String,Object>)


1282
1283
1284
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1282

def data
  @data
end

#timestampString

The time when the event happened. Corresponds to the JSON property timestamp

Returns:

  • (String)


1287
1288
1289
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1287

def timestamp
  @timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1294
1295
1296
1297
# File 'lib/google/apis/genomics_v2alpha1/classes.rb', line 1294

def update!(**args)
  @data = args[:data] if args.key?(:data)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end