Class: Google::Apis::ClassroomV1::CourseWorkMaterial

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

Course work material created by a teacher for students of the course

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CourseWorkMaterial

Returns a new instance of CourseWorkMaterial.



767
768
769
# File 'lib/google/apis/classroom_v1/classes.rb', line 767

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

Instance Attribute Details

Absolute link to this course work material in the Classroom web UI. This is only populated if state is PUBLISHED. Read-only. Corresponds to the JSON property alternateLink

Returns:

  • (String)


692
693
694
# File 'lib/google/apis/classroom_v1/classes.rb', line 692

def alternate_link
  @alternate_link
end

#assignee_modeString

Assignee mode of the course work material. If unspecified, the default value is ALL_STUDENTS. Corresponds to the JSON property assigneeMode

Returns:

  • (String)


698
699
700
# File 'lib/google/apis/classroom_v1/classes.rb', line 698

def assignee_mode
  @assignee_mode
end

#course_idString

Identifier of the course. Read-only. Corresponds to the JSON property courseId

Returns:

  • (String)


703
704
705
# File 'lib/google/apis/classroom_v1/classes.rb', line 703

def course_id
  @course_id
end

#creation_timeString

Timestamp when this course work material was created. Read-only. Corresponds to the JSON property creationTime

Returns:

  • (String)


708
709
710
# File 'lib/google/apis/classroom_v1/classes.rb', line 708

def creation_time
  @creation_time
end

#creator_user_idString

Identifier for the user that created the course work material. Read-only. Corresponds to the JSON property creatorUserId

Returns:

  • (String)


713
714
715
# File 'lib/google/apis/classroom_v1/classes.rb', line 713

def creator_user_id
  @creator_user_id
end

#descriptionString

Optional description of this course work material. The text must be a valid UTF-8 string containing no more than 30,000 characters. Corresponds to the JSON property description

Returns:

  • (String)


719
720
721
# File 'lib/google/apis/classroom_v1/classes.rb', line 719

def description
  @description
end

#idString

Classroom-assigned identifier of this course work material, unique per course. Read-only. Corresponds to the JSON property id

Returns:

  • (String)


725
726
727
# File 'lib/google/apis/classroom_v1/classes.rb', line 725

def id
  @id
end

#individual_students_optionsGoogle::Apis::ClassroomV1::IndividualStudentsOptions

Assignee details about a coursework/announcement. This field is set if and only if assigneeMode is INDIVIDUAL_STUDENTS. Corresponds to the JSON property individualStudentsOptions



731
732
733
# File 'lib/google/apis/classroom_v1/classes.rb', line 731

def individual_students_options
  @individual_students_options
end

#materialsArray<Google::Apis::ClassroomV1::Material>

Additional materials. A course work material must have no more than 20 material items. Corresponds to the JSON property materials



737
738
739
# File 'lib/google/apis/classroom_v1/classes.rb', line 737

def materials
  @materials
end

#scheduled_timeString

Optional timestamp when this course work material is scheduled to be published. Corresponds to the JSON property scheduledTime

Returns:

  • (String)


742
743
744
# File 'lib/google/apis/classroom_v1/classes.rb', line 742

def scheduled_time
  @scheduled_time
end

#stateString

Status of this course work material. If unspecified, the default state is DRAFT. Corresponds to the JSON property state

Returns:

  • (String)


748
749
750
# File 'lib/google/apis/classroom_v1/classes.rb', line 748

def state
  @state
end

#titleString

Title of this course work material. The title must be a valid UTF-8 string containing between 1 and 3000 characters. Corresponds to the JSON property title

Returns:

  • (String)


754
755
756
# File 'lib/google/apis/classroom_v1/classes.rb', line 754

def title
  @title
end

#topic_idString

Identifier for the topic that this course work material is associated with. Must match an existing topic in the course. Corresponds to the JSON property topicId

Returns:

  • (String)


760
761
762
# File 'lib/google/apis/classroom_v1/classes.rb', line 760

def topic_id
  @topic_id
end

#update_timeString

Timestamp of the most recent change to this course work material. Read-only. Corresponds to the JSON property updateTime

Returns:

  • (String)


765
766
767
# File 'lib/google/apis/classroom_v1/classes.rb', line 765

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
# File 'lib/google/apis/classroom_v1/classes.rb', line 772

def update!(**args)
  @alternate_link = args[:alternate_link] if args.key?(:alternate_link)
  @assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode)
  @course_id = args[:course_id] if args.key?(:course_id)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options)
  @materials = args[:materials] if args.key?(:materials)
  @scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time)
  @state = args[:state] if args.key?(:state)
  @title = args[:title] if args.key?(:title)
  @topic_id = args[:topic_id] if args.key?(:topic_id)
  @update_time = args[:update_time] if args.key?(:update_time)
end