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

Constructor Details

#initialize(**args) ⇒ Comment

Returns a new instance of Comment.



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

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



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

def author
  @author
end

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

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



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

def blog
  @blog
end

#contentString

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

Returns:

  • (String)


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

def content
  @content
end

#idString

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

Returns:

  • (String)


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

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



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

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)


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

def kind
  @kind
end

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

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



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

def post
  @post
end

#publishedString

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

Returns:

  • (String)


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

def published
  @published
end

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

Returns:

  • (String)


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

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)


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

def status
  @status
end

#updatedString

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

Returns:

  • (String)


372
373
374
# File 'generated/google/apis/blogger_v2/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 'generated/google/apis/blogger_v2/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