Class: Google::Apis::PlusV1::Activity

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: Actor, Object, Provider

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) ⇒ Activity

Returns a new instance of Activity.



169
170
171
# File 'generated/google/apis/plus_v1/classes.rb', line 169

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

Instance Attribute Details

#accessGoogle::Apis::PlusV1::Acl

Identifies who has access to see this activity. Corresponds to the JSON property access



63
64
65
# File 'generated/google/apis/plus_v1/classes.rb', line 63

def access
  @access
end

#actorGoogle::Apis::PlusV1::Activity::Actor

The person who performed this activity. Corresponds to the JSON property actor



68
69
70
# File 'generated/google/apis/plus_v1/classes.rb', line 68

def actor
  @actor
end

#addressString

Street address where this activity occurred. Corresponds to the JSON property address

Returns:

  • (String)


73
74
75
# File 'generated/google/apis/plus_v1/classes.rb', line 73

def address
  @address
end

#annotationString

Additional content added by the person who shared this activity, applicable only when resharing an activity. Corresponds to the JSON property annotation

Returns:

  • (String)


79
80
81
# File 'generated/google/apis/plus_v1/classes.rb', line 79

def annotation
  @annotation
end

#crosspost_sourceString

If this activity is a crosspost from another system, this property specifies the ID of the original activity. Corresponds to the JSON property crosspostSource

Returns:

  • (String)


85
86
87
# File 'generated/google/apis/plus_v1/classes.rb', line 85

def crosspost_source
  @crosspost_source
end

#etagString

ETag of this response for caching purposes. Corresponds to the JSON property etag

Returns:

  • (String)


90
91
92
# File 'generated/google/apis/plus_v1/classes.rb', line 90

def etag
  @etag
end

#geocodeString

Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated. Corresponds to the JSON property geocode

Returns:

  • (String)


96
97
98
# File 'generated/google/apis/plus_v1/classes.rb', line 96

def geocode
  @geocode
end

#idString

The ID of this activity. Corresponds to the JSON property id

Returns:

  • (String)


101
102
103
# File 'generated/google/apis/plus_v1/classes.rb', line 101

def id
  @id
end

#kindString

Identifies this resource as an activity. Value: "plus#activity". Corresponds to the JSON property kind

Returns:

  • (String)


106
107
108
# File 'generated/google/apis/plus_v1/classes.rb', line 106

def kind
  @kind
end

#locationGoogle::Apis::PlusV1::Place

The location where this activity occurred. Corresponds to the JSON property location



111
112
113
# File 'generated/google/apis/plus_v1/classes.rb', line 111

def location
  @location
end

#objectGoogle::Apis::PlusV1::Activity::Object

The object of this activity. Corresponds to the JSON property object



116
117
118
# File 'generated/google/apis/plus_v1/classes.rb', line 116

def object
  @object
end

#place_idString

ID of the place where this activity occurred. Corresponds to the JSON property placeId

Returns:

  • (String)


121
122
123
# File 'generated/google/apis/plus_v1/classes.rb', line 121

def place_id
  @place_id
end

#place_nameString

Name of the place where this activity occurred. Corresponds to the JSON property placeName

Returns:

  • (String)


126
127
128
# File 'generated/google/apis/plus_v1/classes.rb', line 126

def place_name
  @place_name
end

#providerGoogle::Apis::PlusV1::Activity::Provider

The service provider that initially published this activity. Corresponds to the JSON property provider



131
132
133
# File 'generated/google/apis/plus_v1/classes.rb', line 131

def provider
  @provider
end

#publishedDateTime

The time at which this activity was initially published. Formatted as an RFC 3339 timestamp. Corresponds to the JSON property published

Returns:

  • (DateTime)


137
138
139
# File 'generated/google/apis/plus_v1/classes.rb', line 137

def published
  @published
end

#radiusString

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

Returns:

  • (String)


143
144
145
# File 'generated/google/apis/plus_v1/classes.rb', line 143

def radius
  @radius
end

#titleString

Title of this activity. Corresponds to the JSON property title

Returns:

  • (String)


148
149
150
# File 'generated/google/apis/plus_v1/classes.rb', line 148

def title
  @title
end

#updatedDateTime

The time at which this activity was last updated. Formatted as an RFC 3339 timestamp. Corresponds to the JSON property updated

Returns:

  • (DateTime)


154
155
156
# File 'generated/google/apis/plus_v1/classes.rb', line 154

def updated
  @updated
end

#urlString

The link to this activity. Corresponds to the JSON property url

Returns:

  • (String)


159
160
161
# File 'generated/google/apis/plus_v1/classes.rb', line 159

def url
  @url
end

#verbString

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

Returns:

  • (String)


167
168
169
# File 'generated/google/apis/plus_v1/classes.rb', line 167

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# 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