Class: Google::Apis::ClassroomV1::Link

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

Overview

URL item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Link

Returns a new instance of Link



976
977
978
# File 'generated/google/apis/classroom_v1/classes.rb', line 976

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

Instance Attribute Details

#thumbnail_urlString

URL of a thumbnail image of the target URL. Read-only. Corresponds to the JSON property thumbnailUrl

Returns:

  • (String)


974
975
976
# File 'generated/google/apis/classroom_v1/classes.rb', line 974

def thumbnail_url
  @thumbnail_url
end

#titleString

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

Returns:

  • (String)


968
969
970
# File 'generated/google/apis/classroom_v1/classes.rb', line 968

def title
  @title
end

#urlString

URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters. Corresponds to the JSON property url

Returns:

  • (String)


962
963
964
# File 'generated/google/apis/classroom_v1/classes.rb', line 962

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



981
982
983
984
985
# File 'generated/google/apis/classroom_v1/classes.rb', line 981

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