Class: Google::Apis::BloggerV3::Comment
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV3::Comment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/blogger_v3/classes.rb,
lib/google/apis/blogger_v3/representations.rb,
lib/google/apis/blogger_v3/representations.rb
Defined Under Namespace
Classes: Author, Blog, InReplyTo, Post
Instance Attribute Summary collapse
-
#author ⇒ Google::Apis::BloggerV3::Comment::Author
The author of this Comment.
-
#blog ⇒ Google::Apis::BloggerV3::Comment::Blog
Data about the blog containing this comment.
-
#content ⇒ String
The actual content of the comment.
-
#id ⇒ String
The identifier for this resource.
-
#in_reply_to ⇒ Google::Apis::BloggerV3::Comment::InReplyTo
Data about the comment this is in reply to.
-
#kind ⇒ String
The kind of this entry.
-
#post ⇒ Google::Apis::BloggerV3::Comment::Post
Data about the post containing this comment.
-
#published ⇒ String
RFC 3339 date-time when this comment was published.
-
#self_link ⇒ String
The API REST URL to fetch this resource from.
-
#status ⇒ String
The status of the comment (only populated for admin users).
-
#updated ⇒ String
RFC 3339 date-time when this comment was last updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Comment
constructor
A new instance of Comment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Comment
Returns a new instance of Comment.
374 375 376 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 374 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author ⇒ Google::Apis::BloggerV3::Comment::Author
The author of this Comment.
Corresponds to the JSON property author
322 323 324 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 322 def @author end |
#blog ⇒ Google::Apis::BloggerV3::Comment::Blog
Data about the blog containing this comment.
Corresponds to the JSON property blog
327 328 329 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 327 def blog @blog end |
#content ⇒ String
The actual content of the comment. May include HTML markup.
Corresponds to the JSON property content
332 333 334 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 332 def content @content end |
#id ⇒ String
The identifier for this resource.
Corresponds to the JSON property id
337 338 339 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 337 def id @id end |
#in_reply_to ⇒ Google::Apis::BloggerV3::Comment::InReplyTo
Data about the comment this is in reply to.
Corresponds to the JSON property inReplyTo
342 343 344 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 342 def in_reply_to @in_reply_to end |
#kind ⇒ String
The kind of this entry. Always blogger#comment.
Corresponds to the JSON property kind
347 348 349 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 347 def kind @kind end |
#post ⇒ Google::Apis::BloggerV3::Comment::Post
Data about the post containing this comment.
Corresponds to the JSON property post
352 353 354 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 352 def post @post end |
#published ⇒ String
RFC 3339 date-time when this comment was published.
Corresponds to the JSON property published
357 358 359 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 357 def published @published end |
#self_link ⇒ String
The API REST URL to fetch this resource from.
Corresponds to the JSON property selfLink
362 363 364 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 362 def self_link @self_link end |
#status ⇒ String
The status of the comment (only populated for admin users).
Corresponds to the JSON property status
367 368 369 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 367 def status @status end |
#updated ⇒ String
RFC 3339 date-time when this comment was last updated.
Corresponds to the JSON property updated
372 373 374 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 372 def updated @updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
379 380 381 382 383 384 385 386 387 388 389 390 391 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 379 def update!(**args) @author = args[:author] if args.key?(:author) @blog = args[:blog] if args.key?(:blog) @content = args[:content] if args.key?(:content) @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) @post = args[:post] if args.key?(:post) @published = args[:published] if args.key?(:published) @self_link = args[:self_link] if args.key?(:self_link) @status = args[:status] if args.key?(:status) @updated = args[:updated] if args.key?(:updated) end |