Class: Google::Apis::BloggerV3::Post::Author

Inherits:
Object
  • Object
show all
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

Overview

The author of this Post.

Defined Under Namespace

Classes: Image

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Author

Returns a new instance of Author.



966
967
968
# File 'lib/google/apis/blogger_v3/classes.rb', line 966

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

Instance Attribute Details

#display_nameString

The display name. Corresponds to the JSON property displayName

Returns:

  • (String)


949
950
951
# File 'lib/google/apis/blogger_v3/classes.rb', line 949

def display_name
  @display_name
end

#idString

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

Returns:

  • (String)


954
955
956
# File 'lib/google/apis/blogger_v3/classes.rb', line 954

def id
  @id
end

#imageGoogle::Apis::BloggerV3::Post::Author::Image

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



959
960
961
# File 'lib/google/apis/blogger_v3/classes.rb', line 959

def image
  @image
end

#urlString

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

Returns:

  • (String)


964
965
966
# File 'lib/google/apis/blogger_v3/classes.rb', line 964

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



971
972
973
974
975
976
# File 'lib/google/apis/blogger_v3/classes.rb', line 971

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