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

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

Overview

The author of this Comment.

Defined Under Namespace

Classes: Image

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) ⇒ Author

Returns a new instance of Author



306
307
308
# File 'generated/google/apis/blogger_v2/classes.rb', line 306

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

Instance Attribute Details

#display_nameString

The display name. Corresponds to the JSON property displayName

Returns:

  • (String)


289
290
291
# File 'generated/google/apis/blogger_v2/classes.rb', line 289

def display_name
  @display_name
end

#idString

The identifier of the Comment creator. Corresponds to the JSON property id

Returns:

  • (String)


294
295
296
# File 'generated/google/apis/blogger_v2/classes.rb', line 294

def id
  @id
end

#imageGoogle::Apis::BloggerV2::Comment::Author::Image

The comment creator's avatar. Corresponds to the JSON property image



299
300
301
# File 'generated/google/apis/blogger_v2/classes.rb', line 299

def image
  @image
end

#urlString

The URL of the Comment creator's Profile page. Corresponds to the JSON property url

Returns:

  • (String)


304
305
306
# File 'generated/google/apis/blogger_v2/classes.rb', line 304

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



311
312
313
314
315
316
# File 'generated/google/apis/blogger_v2/classes.rb', line 311

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @image = args[:image] if args.key?(:image)
  @url = args[:url] if args.key?(:url)
end