Class: Google::Apis::FormsV1::Info

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

The general information for a form.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionString

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

Returns:

  • (String)


835
836
837
# File 'lib/google/apis/forms_v1/classes.rb', line 835

def description
  @description
end

#document_titleString

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

Returns:

  • (String)


845
846
847
# File 'lib/google/apis/forms_v1/classes.rb', line 845

def document_title
  @document_title
end

#titleString

Required. The title of the form which is visible to responders. Corresponds to the JSON property title

Returns:

  • (String)


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