Class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Thumbnail

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

Defined Under Namespace

Classes: Image

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Thumbnail

Returns a new instance of Thumbnail



791
792
793
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 791

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

Instance Attribute Details

#descriptionString

Potential name of the thumbnail. Corresponds to the JSON property description

Returns:

  • (String)


779
780
781
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 779

def description
  @description
end

#imageGoogle::Apis::PlusDomainsV1::Activity::Object::Attachment::Thumbnail::Image

Image resource. Corresponds to the JSON property image



784
785
786
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 784

def image
  @image
end

#urlString

URL of the webpage containing the image. Corresponds to the JSON property url

Returns:

  • (String)


789
790
791
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 789

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



796
797
798
799
800
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 796

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