Class: Google::Apis::BloggerV2::Comment

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/blogger_v2/classes.rb,
generated/google/apis/blogger_v2/representations.rb,
generated/google/apis/blogger_v2/representations.rb

Defined Under Namespace

Classes: Author, Blog, InReplyTo, Post

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.



375
376
377
# File 'generated/google/apis/blogger_v2/classes.rb', line 375

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

Instance Attribute Details

#authorGoogle::Apis::BloggerV2::Comment::Author

The author of this Comment. Corresponds to the JSON property author



323
324
325
# File 'generated/google/apis/blogger_v2/classes.rb', line 323

def author
  @author
end

#blogGoogle::Apis::BloggerV2::Comment::Blog

Data about the blog containing this comment. Corresponds to the JSON property blog



328
329
330
# File 'generated/google/apis/blogger_v2/classes.rb', line 328

def blog
  @blog
end

#contentString

The actual content of the comment. May include HTML markup. Corresponds to the JSON property content

Returns:

  • (String)


333
334
335
# File 'generated/google/apis/blogger_v2/classes.rb', line 333

def content
  @content
end

#idString

The identifier for this resource. Corresponds to the JSON property id

Returns:

  • (String)


338
339
340
# File 'generated/google/apis/blogger_v2/classes.rb', line 338

def id
  @id
end

#in_reply_toGoogle::Apis::BloggerV2::Comment::InReplyTo

Data about the comment this is in reply to. Corresponds to the JSON property inReplyTo



343
344
345
# File 'generated/google/apis/blogger_v2/classes.rb', line 343

def in_reply_to
  @in_reply_to
end

#kindString

The kind of this entry. Always blogger#comment. Corresponds to the JSON property kind

Returns:

  • (String)


348
349
350
# File 'generated/google/apis/blogger_v2/classes.rb', line 348

def kind
  @kind
end

#postGoogle::Apis::BloggerV2::Comment::Post

Data about the post containing this comment. Corresponds to the JSON property post



353
354
355
# File 'generated/google/apis/blogger_v2/classes.rb', line 353

def post
  @post
end

#publishedString

RFC 3339 date-time when this comment was published. Corresponds to the JSON property published

Returns:

  • (String)


358
359
360
# File 'generated/google/apis/blogger_v2/classes.rb', line 358

def published
  @published
end

The API REST URL to fetch this resource from. Corresponds to the JSON property selfLink

Returns:

  • (String)


363
364
365
# File 'generated/google/apis/blogger_v2/classes.rb', line 363

def self_link
  @self_link
end

#statusString

The status of the comment (only populated for admin users). Corresponds to the JSON property status

Returns:

  • (String)


368
369
370
# File 'generated/google/apis/blogger_v2/classes.rb', line 368

def status
  @status
end

#updatedString

RFC 3339 date-time when this comment was last updated. Corresponds to the JSON property updated

Returns:

  • (String)


373
374
375
# File 'generated/google/apis/blogger_v2/classes.rb', line 373

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



380
381
382
383
384
385
386
387
388
389
390
391
392
# File 'generated/google/apis/blogger_v2/classes.rb', line 380

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