Class: Google::Apis::TestingV1::SessionStateEvent

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

Overview

A message encapsulating a series of Session states and the time that the DeviceSession first entered those states.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SessionStateEvent

Returns a new instance of SessionStateEvent.



2355
2356
2357
# File 'lib/google/apis/testing_v1/classes.rb', line 2355

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

Instance Attribute Details

#event_timeString

Output only. The time that the session_state first encountered that state. Corresponds to the JSON property eventTime

Returns:

  • (String)


2343
2344
2345
# File 'lib/google/apis/testing_v1/classes.rb', line 2343

def event_time
  @event_time
end

#session_stateString

Output only. The session_state tracked by this event Corresponds to the JSON property sessionState

Returns:

  • (String)


2348
2349
2350
# File 'lib/google/apis/testing_v1/classes.rb', line 2348

def session_state
  @session_state
end

#state_messageString

Output only. A human-readable message to explain the state. Corresponds to the JSON property stateMessage

Returns:

  • (String)


2353
2354
2355
# File 'lib/google/apis/testing_v1/classes.rb', line 2353

def state_message
  @state_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2360
2361
2362
2363
2364
# File 'lib/google/apis/testing_v1/classes.rb', line 2360

def update!(**args)
  @event_time = args[:event_time] if args.key?(:event_time)
  @session_state = args[:session_state] if args.key?(:session_state)
  @state_message = args[:state_message] if args.key?(:state_message)
end