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.



1330
1331
1332
# File 'lib/google/apis/classroom_v1/classes.rb', line 1330

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

Instance Attribute Details

#idString

Gems resource id. Corresponds to the JSON property id

Returns:

  • (String)


1318
1319
1320
# File 'lib/google/apis/classroom_v1/classes.rb', line 1318

def id
  @id
end

#titleString

Title of the Gem. Corresponds to the JSON property title

Returns:

  • (String)


1323
1324
1325
# File 'lib/google/apis/classroom_v1/classes.rb', line 1323

def title
  @title
end

#urlString

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

Returns:

  • (String)


1328
1329
1330
# File 'lib/google/apis/classroom_v1/classes.rb', line 1328

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1335
1336
1337
1338
1339
# File 'lib/google/apis/classroom_v1/classes.rb', line 1335

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