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.



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

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


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

def description
  @description
end

#idString

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

Returns:

  • (String)


1037
1038
1039
# File 'lib/google/apis/classroom_v1/classes.rb', line 1037

def id
  @id
end

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

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



1042
1043
1044
# File 'lib/google/apis/classroom_v1/classes.rb', line 1042

def levels
  @levels
end

#titleString

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

Returns:

  • (String)


1047
1048
1049
# File 'lib/google/apis/classroom_v1/classes.rb', line 1047

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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