Class: Google::Apis::ClassroomV1::StateHistory

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

Overview

The history of each state this submission has been in.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StateHistory

Returns a new instance of StateHistory.



2223
2224
2225
# File 'lib/google/apis/classroom_v1/classes.rb', line 2223

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

Instance Attribute Details

#actor_user_idString

The teacher or student who made the change. Corresponds to the JSON property actorUserId

Returns:

  • (String)


2211
2212
2213
# File 'lib/google/apis/classroom_v1/classes.rb', line 2211

def actor_user_id
  @actor_user_id
end

#stateString

The workflow pipeline stage. Corresponds to the JSON property state

Returns:

  • (String)


2216
2217
2218
# File 'lib/google/apis/classroom_v1/classes.rb', line 2216

def state
  @state
end

#state_timestampString

When the submission entered this state. Corresponds to the JSON property stateTimestamp

Returns:

  • (String)


2221
2222
2223
# File 'lib/google/apis/classroom_v1/classes.rb', line 2221

def state_timestamp
  @state_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2228
2229
2230
2231
2232
# File 'lib/google/apis/classroom_v1/classes.rb', line 2228

def update!(**args)
  @actor_user_id = args[:actor_user_id] if args.key?(:actor_user_id)
  @state = args[:state] if args.key?(:state)
  @state_timestamp = args[:state_timestamp] if args.key?(:state_timestamp)
end