class Google::Apis::PlusV1::Activity::Object::Attachment

Attributes

content[RW]

If the attachment is an article, this property contains a snippet of text from the article. It can also include descriptions for other types. Corresponds to the JSON property `content` @return [String]

display_name[RW]

The title of the attachment, such as a photo caption or an article title. Corresponds to the JSON property `displayName` @return [String]

embed[RW]

If the attachment is a video, the embeddable link. Corresponds to the JSON property `embed` @return [Google::Apis::PlusV1::Activity::Object::Attachment::Embed]

full_image[RW]

The full image URL for photo attachments. Corresponds to the JSON property `fullImage` @return [Google::Apis::PlusV1::Activity::Object::Attachment::FullImage]

id[RW]

The ID of the attachment. Corresponds to the JSON property `id` @return [String]

image[RW]

The preview image for photos or videos. Corresponds to the JSON property `image` @return [Google::Apis::PlusV1::Activity::Object::Attachment::Image]

object_type[RW]

The type of media object. Possible values include, but are not limited to, the following values:

  • “photo” - A photo.

  • “album” - A photo album.

  • “video” - A video.

  • “article” - An article, specified by a link.

Corresponds to the JSON property `objectType` @return [String]

thumbnails[RW]

If the attachment is an album, this property is a list of potential additional thumbnails from the album. Corresponds to the JSON property `thumbnails` @return [Array<Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail>]

url[RW]

The link to the attachment, which should be of type text/html. Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/plus_v1/classes.rb, line 616
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/plus_v1/classes.rb, line 621
def update!(**args)
  @content = args[:content] if args.key?(:content)
  @display_name = args[:display_name] if args.key?(:display_name)
  @embed = args[:embed] if args.key?(:embed)
  @full_image = args[:full_image] if args.key?(:full_image)
  @id = args[:id] if args.key?(:id)
  @image = args[:image] if args.key?(:image)
  @object_type = args[:object_type] if args.key?(:object_type)
  @thumbnails = args[:thumbnails] if args.key?(:thumbnails)
  @url = args[:url] if args.key?(:url)
end