Class: Google::Apis::ClassroomV1::Link
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ClassroomV1::Link
 
- 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
- 
  
    
      #thumbnail_url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    URL of a thumbnail image of the target URL. 
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Title of the target of the URL. 
- 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    URL to link to. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Link 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Link. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Link
Returns a new instance of Link
| 1126 1127 1128 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1126 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#thumbnail_url ⇒ String
URL of a thumbnail image of the target URL.
Read-only.
Corresponds to the JSON property thumbnailUrl
| 1112 1113 1114 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1112 def thumbnail_url @thumbnail_url end | 
#title ⇒ String
Title of the target of the URL.
Read-only.
Corresponds to the JSON property title
| 1118 1119 1120 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1118 def title @title end | 
#url ⇒ String
URL to link to.
This must be a valid UTF-8 string containing between 1 and 2024 characters.
Corresponds to the JSON property url
| 1124 1125 1126 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1124 def url @url end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1131 1132 1133 1134 1135 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1131 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 |