Class: Google::Apis::FormsV1::Info
- Inherits:
-
Object
- Object
- Google::Apis::FormsV1::Info
- 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
The general information for a form.
Instance Attribute Summary collapse
-
#description ⇒ String
The description of the form.
-
#document_title ⇒ String
Output only.
-
#title ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Info
constructor
A new instance of Info.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Info
Returns a new instance of Info.
852 853 854 |
# File 'lib/google/apis/forms_v1/classes.rb', line 852 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the form.
Corresponds to the JSON property description
835 836 837 |
# File 'lib/google/apis/forms_v1/classes.rb', line 835 def description @description end |
#document_title ⇒ String
Output only. The title of the document which is visible in Drive. If Info.
title
is empty, document_title
may appear in its place in the Google Forms
UI and be visible to responders. document_title
can be set on create, but
cannot be modified by a batchUpdate request. Please use the Google Drive API if you need
to programmatically update document_title
.
Corresponds to the JSON property documentTitle
845 846 847 |
# File 'lib/google/apis/forms_v1/classes.rb', line 845 def document_title @document_title end |
#title ⇒ String
Required. The title of the form which is visible to responders.
Corresponds to the JSON property title
850 851 852 |
# File 'lib/google/apis/forms_v1/classes.rb', line 850 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
857 858 859 860 861 |
# File 'lib/google/apis/forms_v1/classes.rb', line 857 def update!(**args) @description = args[:description] if args.key?(:description) @document_title = args[:document_title] if args.key?(:document_title) @title = args[:title] if args.key?(:title) end |