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

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

URL item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Link

Returns a new instance of Link.



1525
1526
1527
# File 'lib/google/apis/classroom_v1/classes.rb', line 1525

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)


1512
1513
1514
# File 'lib/google/apis/classroom_v1/classes.rb', line 1512

def thumbnail_url
  @thumbnail_url
end

#titleString

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

Returns:

  • (String)


1517
1518
1519
# File 'lib/google/apis/classroom_v1/classes.rb', line 1517

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)


1523
1524
1525
# File 'lib/google/apis/classroom_v1/classes.rb', line 1523

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1530
1531
1532
1533
1534
# File 'lib/google/apis/classroom_v1/classes.rb', line 1530

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