Class: Google::Apis::ClassroomV1::GeminiGem

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

Gemini Gem link.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GeminiGem

Returns a new instance of GeminiGem.



1296
1297
1298
# File 'lib/google/apis/classroom_v1/classes.rb', line 1296

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

Instance Attribute Details

#idString

Gems resource id. Corresponds to the JSON property id

Returns:

  • (String)


1284
1285
1286
# File 'lib/google/apis/classroom_v1/classes.rb', line 1284

def id
  @id
end

#titleString

Title of the Gem. Corresponds to the JSON property title

Returns:

  • (String)


1289
1290
1291
# File 'lib/google/apis/classroom_v1/classes.rb', line 1289

def title
  @title
end

#urlString

URL that can be used to access the Gem. Corresponds to the JSON property url

Returns:

  • (String)


1294
1295
1296
# File 'lib/google/apis/classroom_v1/classes.rb', line 1294

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1301
1302
1303
1304
1305
# File 'lib/google/apis/classroom_v1/classes.rb', line 1301

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @title = args[:title] if args.key?(:title)
  @url = args[:url] if args.key?(:url)
end