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.



1304
1305
1306
# File 'lib/google/apis/classroom_v1/classes.rb', line 1304

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

Instance Attribute Details

#idString

Gems resource id. Corresponds to the JSON property id

Returns:

  • (String)


1292
1293
1294
# File 'lib/google/apis/classroom_v1/classes.rb', line 1292

def id
  @id
end

#titleString

Title of the Gem. Corresponds to the JSON property title

Returns:

  • (String)


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

def title
  @title
end

#urlString

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

Returns:

  • (String)


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

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1309
1310
1311
1312
1313
# File 'lib/google/apis/classroom_v1/classes.rb', line 1309

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