Class: Google::Apis::PlusV1::Comment
- Inherits:
-
Object
- Object
- Google::Apis::PlusV1::Comment
- 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
-
#actor ⇒ Google::Apis::PlusV1::Comment::Actor
The person who posted this comment.
-
#etag ⇒ String
ETag of this response for caching purposes.
-
#id ⇒ String
The ID of this comment.
-
#in_reply_to ⇒ Array<Google::Apis::PlusV1::Comment::InReplyTo>
The activity this comment replied to.
-
#kind ⇒ String
Identifies this resource as a comment.
-
#object ⇒ Google::Apis::PlusV1::Comment::Object
The object of this comment.
-
#plusoners ⇒ Google::Apis::PlusV1::Comment::Plusoners
People who +1'd this comment.
-
#published ⇒ DateTime
The time at which this comment was initially published.
-
#self_link ⇒ String
Link to this comment resource.
-
#updated ⇒ DateTime
The time at which this comment was last updated.
-
#verb ⇒ String
This comment's verb, indicating what action was performed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Comment
constructor
A new instance of Comment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#actor ⇒ Google::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 |
#etag ⇒ String
ETag of this response for caching purposes.
Corresponds to the JSON property etag
980 981 982 |
# File 'generated/google/apis/plus_v1/classes.rb', line 980 def etag @etag end |
#id ⇒ String
The ID of this comment.
Corresponds to the JSON property id
985 986 987 |
# File 'generated/google/apis/plus_v1/classes.rb', line 985 def id @id end |
#in_reply_to ⇒ Array<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 |
#kind ⇒ String
Identifies this resource as a comment. Value: "plus#comment".
Corresponds to the JSON property kind
995 996 997 |
# File 'generated/google/apis/plus_v1/classes.rb', line 995 def kind @kind end |
#object ⇒ Google::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 |
#plusoners ⇒ Google::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 |
#published ⇒ DateTime
The time at which this comment was initially published. Formatted as an RFC
3339 timestamp.
Corresponds to the JSON property published
1011 1012 1013 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1011 def published @published end |
#self_link ⇒ String
Link to this comment resource.
Corresponds to the JSON property selfLink
1016 1017 1018 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1016 def self_link @self_link end |
#updated ⇒ DateTime
The time at which this comment was last updated. Formatted as an RFC 3339
timestamp.
Corresponds to the JSON property updated
1022 1023 1024 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1022 def updated @updated end |
#verb ⇒ String
This comment's verb, indicating what action was performed. Possible values are:
- "post" - Publish content to the stream.
Corresponds to the JSON property
verb
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 |