Class: Google::Apis::PlusV1::Comment

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

Returns a new instance of Comment.



1031
1032
1033
# File 'generated/google/apis/plus_v1/classes.rb', line 1031

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

Instance Attribute Details

#actorGoogle::Apis::PlusV1::Comment::Actor

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



975
976
977
# File 'generated/google/apis/plus_v1/classes.rb', line 975

def actor
  @actor
end

#etagString

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

Returns:

  • (String)


980
981
982
# File 'generated/google/apis/plus_v1/classes.rb', line 980

def etag
  @etag
end

#idString

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

Returns:

  • (String)


985
986
987
# File 'generated/google/apis/plus_v1/classes.rb', line 985

def id
  @id
end

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

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



990
991
992
# File 'generated/google/apis/plus_v1/classes.rb', line 990

def in_reply_to
  @in_reply_to
end

#kindString

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

Returns:

  • (String)


995
996
997
# File 'generated/google/apis/plus_v1/classes.rb', line 995

def kind
  @kind
end

#objectGoogle::Apis::PlusV1::Comment::Object

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



1000
1001
1002
# File 'generated/google/apis/plus_v1/classes.rb', line 1000

def object
  @object
end

#plusonersGoogle::Apis::PlusV1::Comment::Plusoners

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



1005
1006
1007
# File 'generated/google/apis/plus_v1/classes.rb', line 1005

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

Returns:

  • (DateTime)


1011
1012
1013
# File 'generated/google/apis/plus_v1/classes.rb', line 1011

def published
  @published
end

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

Returns:

  • (String)


1016
1017
1018
# File 'generated/google/apis/plus_v1/classes.rb', line 1016

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

Returns:

  • (DateTime)


1022
1023
1024
# File 'generated/google/apis/plus_v1/classes.rb', line 1022

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

Returns:

  • (String)


1029
1030
1031
# File 'generated/google/apis/plus_v1/classes.rb', line 1029

def verb
  @verb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
# File 'generated/google/apis/plus_v1/classes.rb', line 1036

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