Class: Google::Apis::PlusDomainsV1::Activity

Inherits:
Object
  • Object
show all
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

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


176
177
178
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 176

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

Instance Attribute Details

#accessGoogle::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

#actorGoogle::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

#addressString

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

#annotationString

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_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


92
93
94
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 92

def crosspost_source
  @crosspost_source
end

#etagString

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

#geocodeString

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

#idString

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

#kindString

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

#locationGoogle::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

#objectGoogle::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_idString

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_nameString

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

#providerGoogle::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

#publishedDateTime

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

#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


150
151
152
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 150

def radius
  @radius
end

#titleString

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

#updatedDateTime

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

#urlString

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

#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

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