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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/blogger_v3/classes.rb,
generated/google/apis/blogger_v3/representations.rb,
generated/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

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.



955
956
957
# File 'generated/google/apis/blogger_v3/classes.rb', line 955

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

Instance Attribute Details

#display_nameString

The display name. Corresponds to the JSON property displayName

Returns:

  • (String)


938
939
940
# File 'generated/google/apis/blogger_v3/classes.rb', line 938

def display_name
  @display_name
end

#idString

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

Returns:

  • (String)


943
944
945
# File 'generated/google/apis/blogger_v3/classes.rb', line 943

def id
  @id
end

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

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



948
949
950
# File 'generated/google/apis/blogger_v3/classes.rb', line 948

def image
  @image
end

#urlString

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

Returns:

  • (String)


953
954
955
# File 'generated/google/apis/blogger_v3/classes.rb', line 953

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



960
961
962
963
964
965
# File 'generated/google/apis/blogger_v3/classes.rb', line 960

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