class Google::Apis::PlusV1::Activity

Attributes

access[RW]

Identifies who has access to see this activity. Corresponds to the JSON property `access` @return [Google::Apis::PlusV1::Acl]

actor[RW]

The person who performed this activity. Corresponds to the JSON property `actor` @return [Google::Apis::PlusV1::Activity::Actor]

address[RW]

Street address where this activity occurred. Corresponds to the JSON property `address` @return [String]

annotation[RW]

Additional content added by the person who shared this activity, applicable only when resharing an activity. Corresponds to the JSON property `annotation` @return [String]

crosspost_source[RW]

If this activity is a crosspost from another system, this property specifies the ID of the original activity. Corresponds to the JSON property `crosspostSource` @return [String]

etag[RW]

ETag of this response for caching purposes. Corresponds to the JSON property `etag` @return [String]

geocode[RW]

Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated. Corresponds to the JSON property `geocode` @return [String]

id[RW]

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

kind[RW]

Identifies this resource as an activity. Value: “plus#activity”. Corresponds to the JSON property `kind` @return [String]

location[RW]

The location where this activity occurred. Corresponds to the JSON property `location` @return [Google::Apis::PlusV1::Place]

object[RW]

The object of this activity. Corresponds to the JSON property `object` @return [Google::Apis::PlusV1::Activity::Object]

place_id[RW]

ID of the place where this activity occurred. Corresponds to the JSON property `placeId` @return [String]

place_name[RW]

Name of the place where this activity occurred. Corresponds to the JSON property `placeName` @return [String]

provider[RW]

The service provider that initially published this activity. Corresponds to the JSON property `provider` @return [Google::Apis::PlusV1::Activity::Provider]

published[RW]

The time at which this activity was initially published. Formatted as an RFC 3339 timestamp. Corresponds to the JSON property `published` @return [DateTime]

radius[RW]

Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode. Corresponds to the JSON property `radius` @return [String]

title[RW]

Title of this activity. Corresponds to the JSON property `title` @return [String]

updated[RW]

The time at which this activity was last updated. Formatted as an RFC 3339 timestamp. Corresponds to the JSON property `updated` @return [DateTime]

url[RW]

The link to this activity. Corresponds to the JSON property `url` @return [String]

verb[RW]

This activity's verb, which indicates the action that was performed. Possible values include, but are not limited to, the following values:

  • “post” - Publish content to the stream.

  • “share” - Reshare an activity.

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

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/plus_v1/classes.rb, line 169
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 174
def update!(**args)
  @access = args[:access] if args.key?(:access)
  @actor = args[:actor] if args.key?(:actor)
  @address = args[:address] if args.key?(:address)
  @annotation = args[:annotation] if args.key?(:annotation)
  @crosspost_source = args[:crosspost_source] if args.key?(:crosspost_source)
  @etag = args[:etag] if args.key?(:etag)
  @geocode = args[:geocode] if args.key?(:geocode)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @location = args[:location] if args.key?(:location)
  @object = args[:object] if args.key?(:object)
  @place_id = args[:place_id] if args.key?(:place_id)
  @place_name = args[:place_name] if args.key?(:place_name)
  @provider = args[:provider] if args.key?(:provider)
  @published = args[:published] if args.key?(:published)
  @radius = args[:radius] if args.key?(:radius)
  @title = args[:title] if args.key?(:title)
  @updated = args[:updated] if args.key?(:updated)
  @url = args[:url] if args.key?(:url)
  @verb = args[:verb] if args.key?(:verb)
end