Class: Google::Apis::ClassroomV1::Form

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb

Overview

Google Forms item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Form

Returns a new instance of Form



1028
1029
1030
# File 'generated/google/apis/classroom_v1/classes.rb', line 1028

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

Instance Attribute Details

#form_urlString

URL of the form. Corresponds to the JSON property formUrl

Returns:

  • (String)


1020
1021
1022
# File 'generated/google/apis/classroom_v1/classes.rb', line 1020

def form_url
  @form_url
end

#response_urlString

URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only. Corresponds to the JSON property responseUrl

Returns:

  • (String)


1015
1016
1017
# File 'generated/google/apis/classroom_v1/classes.rb', line 1015

def response_url
  @response_url
end

#thumbnail_urlString

URL of a thumbnail image of the Form. Read-only. Corresponds to the JSON property thumbnailUrl

Returns:

  • (String)


1007
1008
1009
# File 'generated/google/apis/classroom_v1/classes.rb', line 1007

def thumbnail_url
  @thumbnail_url
end

#titleString

Title of the Form. Read-only. Corresponds to the JSON property title

Returns:

  • (String)


1026
1027
1028
# File 'generated/google/apis/classroom_v1/classes.rb', line 1026

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1033
1034
1035
1036
1037
1038
# File 'generated/google/apis/classroom_v1/classes.rb', line 1033

def update!(**args)
  @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
  @response_url = args[:response_url] if args.key?(:response_url)
  @form_url = args[:form_url] if args.key?(:form_url)
  @title = args[:title] if args.key?(:title)
end