Class: Google::Apis::PlusDomainsV1::Comment

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, InReplyTo, Object, Plusoners

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


1350
1351
1352
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1350

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

Instance Attribute Details

#actorGoogle::Apis::PlusDomainsV1::Comment::Actor

The person who posted this comment. Corresponds to the JSON property actor


1294
1295
1296
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1294

def actor
  @actor
end

#etagString

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


1299
1300
1301
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1299

def etag
  @etag
end

#idString

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


1304
1305
1306
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1304

def id
  @id
end

#in_reply_toArray<Google::Apis::PlusDomainsV1::Comment::InReplyTo>

The activity this comment replied to. Corresponds to the JSON property inReplyTo


1309
1310
1311
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1309

def in_reply_to
  @in_reply_to
end

#kindString

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


1314
1315
1316
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1314

def kind
  @kind
end

#objectGoogle::Apis::PlusDomainsV1::Comment::Object

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


1319
1320
1321
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1319

def object
  @object
end

#plusonersGoogle::Apis::PlusDomainsV1::Comment::Plusoners

People who +1'd this comment. Corresponds to the JSON property plusoners


1324
1325
1326
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1324

def plusoners
  @plusoners
end

#publishedDateTime

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


1330
1331
1332
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1330

def published
  @published
end

Link to this comment resource. Corresponds to the JSON property selfLink


1335
1336
1337
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1335

def self_link
  @self_link
end

#updatedDateTime

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


1341
1342
1343
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1341

def updated
  @updated
end

#verbString

This comment's verb, indicating what action was performed. Possible values are:

  • "post" - Publish content to the stream. Corresponds to the JSON property verb

1348
1349
1350
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1348

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 1355

def update!(**args)
  @actor = args[:actor] if args.key?(:actor)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @in_reply_to = args[:in_reply_to] if args.key?(:in_reply_to)
  @kind = args[:kind] if args.key?(:kind)
  @object = args[:object] if args.key?(:object)
  @plusoners = args[:plusoners] if args.key?(:plusoners)
  @published = args[:published] if args.key?(:published)
  @self_link = args[:self_link] if args.key?(:self_link)
  @updated = args[:updated] if args.key?(:updated)
  @verb = args[:verb] if args.key?(:verb)
end