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

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

Overview

Google Forms item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Form

Returns a new instance of Form.



1248
1249
1250
# File 'lib/google/apis/classroom_v1/classes.rb', line 1248

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

Instance Attribute Details

#form_urlString

URL of the form. Corresponds to the JSON property formUrl

Returns:

  • (String)


1230
1231
1232
# File 'lib/google/apis/classroom_v1/classes.rb', line 1230

def form_url
  @form_url
end

#response_urlString

URL of the form responses document. Only set if responses 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)


1236
1237
1238
# File 'lib/google/apis/classroom_v1/classes.rb', line 1236

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)


1241
1242
1243
# File 'lib/google/apis/classroom_v1/classes.rb', line 1241

def thumbnail_url
  @thumbnail_url
end

#titleString

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

Returns:

  • (String)


1246
1247
1248
# File 'lib/google/apis/classroom_v1/classes.rb', line 1246

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1253
1254
1255
1256
1257
1258
# File 'lib/google/apis/classroom_v1/classes.rb', line 1253

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