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



264
265
266
# File 'generated/google/apis/blogger_v2/classes.rb', line 264

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



217
218
219
# File 'generated/google/apis/blogger_v2/classes.rb', line 217

def author
  @author
end

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

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



222
223
224
# File 'generated/google/apis/blogger_v2/classes.rb', line 222

def blog
  @blog
end

#contentString

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

Returns:

  • (String)


227
228
229
# File 'generated/google/apis/blogger_v2/classes.rb', line 227

def content
  @content
end

#idFixnum

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

Returns:

  • (Fixnum)


232
233
234
# File 'generated/google/apis/blogger_v2/classes.rb', line 232

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



237
238
239
# File 'generated/google/apis/blogger_v2/classes.rb', line 237

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)


242
243
244
# File 'generated/google/apis/blogger_v2/classes.rb', line 242

def kind
  @kind
end

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

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



247
248
249
# File 'generated/google/apis/blogger_v2/classes.rb', line 247

def post
  @post
end

#publishedDateTime

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

Returns:

  • (DateTime)


252
253
254
# File 'generated/google/apis/blogger_v2/classes.rb', line 252

def published
  @published
end

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

Returns:

  • (String)


257
258
259
# File 'generated/google/apis/blogger_v2/classes.rb', line 257

def self_link
  @self_link
end

#updatedDateTime

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

Returns:

  • (DateTime)


262
263
264
# File 'generated/google/apis/blogger_v2/classes.rb', line 262

def updated
  @updated
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



269
270
271
272
273
274
275
276
277
278
279
280
# File 'generated/google/apis/blogger_v2/classes.rb', line 269

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)
  @updated = args[:updated] if args.key?(:updated)
end