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.



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

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

Instance Attribute Details

#idString

Gems resource id. Corresponds to the JSON property id

Returns:

  • (String)


1316
1317
1318
# File 'lib/google/apis/classroom_v1/classes.rb', line 1316

def id
  @id
end

#titleString

Title of the Gem. Corresponds to the JSON property title

Returns:

  • (String)


1321
1322
1323
# File 'lib/google/apis/classroom_v1/classes.rb', line 1321

def title
  @title
end

#urlString

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

Returns:

  • (String)


1326
1327
1328
# File 'lib/google/apis/classroom_v1/classes.rb', line 1326

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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