Class: Google::Apis::PlusDomainsV1::Activity
- Inherits:
-
Object
- Object
- Google::Apis::PlusDomainsV1::Activity
- 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: Actor, Object, Provider
Instance Attribute Summary collapse
-
#access ⇒ Google::Apis::PlusDomainsV1::Acl
Identifies who has access to see this activity.
-
#actor ⇒ Google::Apis::PlusDomainsV1::Activity::Actor
The person who performed this activity.
-
#address ⇒ String
Street address where this activity occurred.
-
#annotation ⇒ String
Additional content added by the person who shared this activity, applicable only when resharing an activity.
-
#crosspost_source ⇒ String
If this activity is a crosspost from another system, this property specifies the ID of the original activity.
-
#etag ⇒ String
ETag of this response for caching purposes.
-
#geocode ⇒ String
Latitude and longitude where this activity occurred.
-
#id ⇒ String
The ID of this activity.
-
#kind ⇒ String
Identifies this resource as an activity.
-
#location ⇒ Google::Apis::PlusDomainsV1::Place
The location where this activity occurred.
-
#object ⇒ Google::Apis::PlusDomainsV1::Activity::Object
The object of this activity.
-
#place_id ⇒ String
ID of the place where this activity occurred.
-
#place_name ⇒ String
Name of the place where this activity occurred.
-
#provider ⇒ Google::Apis::PlusDomainsV1::Activity::Provider
The service provider that initially published this activity.
-
#published ⇒ DateTime
The time at which this activity was initially published.
-
#radius ⇒ String
Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode.
-
#title ⇒ String
Title of this activity.
-
#updated ⇒ DateTime
The time at which this activity was last updated.
-
#url ⇒ String
The link to this activity.
-
#verb ⇒ String
This activity's verb, which indicates the action that was performed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Activity
constructor
A new instance of Activity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Activity
Returns a new instance of Activity
176 177 178 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access ⇒ Google::Apis::PlusDomainsV1::Acl
Identifies who has access to see this activity.
Corresponds to the JSON property access
70 71 72 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 70 def access @access end |
#actor ⇒ Google::Apis::PlusDomainsV1::Activity::Actor
The person who performed this activity.
Corresponds to the JSON property actor
75 76 77 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 75 def actor @actor end |
#address ⇒ String
Street address where this activity occurred.
Corresponds to the JSON property address
80 81 82 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 80 def address @address end |
#annotation ⇒ String
Additional content added by the person who shared this activity, applicable
only when resharing an activity.
Corresponds to the JSON property annotation
86 87 88 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 86 def annotation @annotation end |
#crosspost_source ⇒ String
If this activity is a crosspost from another system, this property specifies
the ID of the original activity.
Corresponds to the JSON property crosspostSource
92 93 94 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 92 def crosspost_source @crosspost_source end |
#etag ⇒ String
ETag of this response for caching purposes.
Corresponds to the JSON property etag
97 98 99 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 97 def etag @etag end |
#geocode ⇒ String
Latitude and longitude where this activity occurred. Format is latitude
followed by longitude, space separated.
Corresponds to the JSON property geocode
103 104 105 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 103 def geocode @geocode end |
#id ⇒ String
The ID of this activity.
Corresponds to the JSON property id
108 109 110 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 108 def id @id end |
#kind ⇒ String
Identifies this resource as an activity. Value: "plus#activity".
Corresponds to the JSON property kind
113 114 115 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 113 def kind @kind end |
#location ⇒ Google::Apis::PlusDomainsV1::Place
The location where this activity occurred.
Corresponds to the JSON property location
118 119 120 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 118 def location @location end |
#object ⇒ Google::Apis::PlusDomainsV1::Activity::Object
The object of this activity.
Corresponds to the JSON property object
123 124 125 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 123 def object @object end |
#place_id ⇒ String
ID of the place where this activity occurred.
Corresponds to the JSON property placeId
128 129 130 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 128 def place_id @place_id end |
#place_name ⇒ String
Name of the place where this activity occurred.
Corresponds to the JSON property placeName
133 134 135 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 133 def place_name @place_name end |
#provider ⇒ Google::Apis::PlusDomainsV1::Activity::Provider
The service provider that initially published this activity.
Corresponds to the JSON property provider
138 139 140 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 138 def provider @provider end |
#published ⇒ DateTime
The time at which this activity was initially published. Formatted as an RFC
3339 timestamp.
Corresponds to the JSON property published
144 145 146 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 144 def published @published end |
#radius ⇒ String
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
150 151 152 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 150 def radius @radius end |
#title ⇒ String
Title of this activity.
Corresponds to the JSON property title
155 156 157 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 155 def title @title end |
#updated ⇒ DateTime
The time at which this activity was last updated. Formatted as an RFC 3339
timestamp.
Corresponds to the JSON property updated
161 162 163 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 161 def updated @updated end |
#url ⇒ String
The link to this activity.
Corresponds to the JSON property url
166 167 168 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 166 def url @url end |
#verb ⇒ String
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
174 175 176 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 174 def verb @verb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 181 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 |