Class: Google::Apis::ClassroomV1::CopyHistory
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::CopyHistory
- 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
Identifier of a previous copy of a given attachment.
Instance Attribute Summary collapse
-
#attachment_id ⇒ String
Immutable.
-
#course_id ⇒ String
Immutable.
-
#item_id ⇒ String
Immutable.
-
#post_id ⇒ String
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CopyHistory
constructor
A new instance of CopyHistory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CopyHistory
Returns a new instance of CopyHistory.
423 424 425 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 423 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment_id ⇒ String
Immutable. Identifier of the attachment.
Corresponds to the JSON property attachmentId
405 406 407 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 405 def @attachment_id end |
#course_id ⇒ String
Immutable. Identifier of the course.
Corresponds to the JSON property courseId
410 411 412 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 410 def course_id @course_id end |
#item_id ⇒ String
Immutable. Identifier of the Announcement
, CourseWork
, or
CourseWorkMaterial
under which the attachment is attached.
Corresponds to the JSON property itemId
416 417 418 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 416 def item_id @item_id end |
#post_id ⇒ String
Immutable. Deprecated, use item_id
instead.
Corresponds to the JSON property postId
421 422 423 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 421 def post_id @post_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
428 429 430 431 432 433 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 428 def update!(**args) @attachment_id = args[:attachment_id] if args.key?(:attachment_id) @course_id = args[:course_id] if args.key?(:course_id) @item_id = args[:item_id] if args.key?(:item_id) @post_id = args[:post_id] if args.key?(:post_id) end |