Class: Google::Apis::FormsV1::RatingQuestion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/forms_v1/classes.rb,
lib/google/apis/forms_v1/representations.rb,
lib/google/apis/forms_v1/representations.rb

Overview

A rating question. The user has a range of icons to choose from.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RatingQuestion

Returns a new instance of RatingQuestion.



1354
1355
1356
# File 'lib/google/apis/forms_v1/classes.rb', line 1354

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

Instance Attribute Details

#icon_typeString

Required. The icon type to use for the rating. Corresponds to the JSON property iconType

Returns:

  • (String)


1347
1348
1349
# File 'lib/google/apis/forms_v1/classes.rb', line 1347

def icon_type
  @icon_type
end

#rating_scale_levelFixnum

Required. The rating scale level of the rating question. Corresponds to the JSON property ratingScaleLevel

Returns:

  • (Fixnum)


1352
1353
1354
# File 'lib/google/apis/forms_v1/classes.rb', line 1352

def rating_scale_level
  @rating_scale_level
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1359
1360
1361
1362
# File 'lib/google/apis/forms_v1/classes.rb', line 1359

def update!(**args)
  @icon_type = args[:icon_type] if args.key?(:icon_type)
  @rating_scale_level = args[:rating_scale_level] if args.key?(:rating_scale_level)
end