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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StateHistory

Returns a new instance of StateHistory.



1807
1808
1809
# File 'generated/google/apis/classroom_v1/classes.rb', line 1807

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)


1795
1796
1797
# File 'generated/google/apis/classroom_v1/classes.rb', line 1795

def actor_user_id
  @actor_user_id
end

#stateString

The workflow pipeline stage. Corresponds to the JSON property state

Returns:

  • (String)


1800
1801
1802
# File 'generated/google/apis/classroom_v1/classes.rb', line 1800

def state
  @state
end

#state_timestampString

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

Returns:

  • (String)


1805
1806
1807
# File 'generated/google/apis/classroom_v1/classes.rb', line 1805

def state_timestamp
  @state_timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1812
1813
1814
1815
1816
# File 'generated/google/apis/classroom_v1/classes.rb', line 1812

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