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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_v1/classes.rb,
generated/google/apis/plus_v1/representations.rb,
generated/google/apis/plus_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.



751
752
753
# File 'generated/google/apis/plus_v1/classes.rb', line 751

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


739
740
741
# File 'generated/google/apis/plus_v1/classes.rb', line 739

def description
  @description
end

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

Image resource. Corresponds to the JSON property image



744
745
746
# File 'generated/google/apis/plus_v1/classes.rb', line 744

def image
  @image
end

#urlString

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

Returns:

  • (String)


749
750
751
# File 'generated/google/apis/plus_v1/classes.rb', line 749

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



756
757
758
759
760
# File 'generated/google/apis/plus_v1/classes.rb', line 756

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