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.



853
854
855
# File 'lib/google/apis/forms_v1/classes.rb', line 853

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


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

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)


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

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)


851
852
853
# File 'lib/google/apis/forms_v1/classes.rb', line 851

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



858
859
860
861
862
# File 'lib/google/apis/forms_v1/classes.rb', line 858

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