Class: Google::Apis::ClassroomV1::Criterion

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

A rubric criterion. Each criterion is a dimension on which performance is rated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Criterion

Returns a new instance of Criterion.



1033
1034
1035
# File 'lib/google/apis/classroom_v1/classes.rb', line 1033

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

Instance Attribute Details

#descriptionString

The description of the criterion. Corresponds to the JSON property description

Returns:

  • (String)


1016
1017
1018
# File 'lib/google/apis/classroom_v1/classes.rb', line 1016

def description
  @description
end

#idString

The criterion ID. On creation, an ID is assigned. Corresponds to the JSON property id

Returns:

  • (String)


1021
1022
1023
# File 'lib/google/apis/classroom_v1/classes.rb', line 1021

def id
  @id
end

#levelsArray<Google::Apis::ClassroomV1::Level>

The list of levels within this criterion. Corresponds to the JSON property levels



1026
1027
1028
# File 'lib/google/apis/classroom_v1/classes.rb', line 1026

def levels
  @levels
end

#titleString

The title of the criterion. Corresponds to the JSON property title

Returns:

  • (String)


1031
1032
1033
# File 'lib/google/apis/classroom_v1/classes.rb', line 1031

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1038
1039
1040
1041
1042
1043
# File 'lib/google/apis/classroom_v1/classes.rb', line 1038

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @levels = args[:levels] if args.key?(:levels)
  @title = args[:title] if args.key?(:title)
end