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.



1057
1058
1059
# File 'lib/google/apis/classroom_v1/classes.rb', line 1057

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


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

def description
  @description
end

#idString

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

Returns:

  • (String)


1045
1046
1047
# File 'lib/google/apis/classroom_v1/classes.rb', line 1045

def id
  @id
end

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

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



1050
1051
1052
# File 'lib/google/apis/classroom_v1/classes.rb', line 1050

def levels
  @levels
end

#titleString

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

Returns:

  • (String)


1055
1056
1057
# File 'lib/google/apis/classroom_v1/classes.rb', line 1055

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1062
1063
1064
1065
1066
1067
# File 'lib/google/apis/classroom_v1/classes.rb', line 1062

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