Class: Google::Apis::BloggerV2::Post::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 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.



898
899
900
# File 'generated/google/apis/blogger_v2/classes.rb', line 898

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

Instance Attribute Details

#display_nameString

The display name. Corresponds to the JSON property displayName

Returns:

  • (String)


881
882
883
# File 'generated/google/apis/blogger_v2/classes.rb', line 881

def display_name
  @display_name
end

#idString

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

Returns:

  • (String)


886
887
888
# File 'generated/google/apis/blogger_v2/classes.rb', line 886

def id
  @id
end

#imageGoogle::Apis::BloggerV2::Post::Author::Image

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



891
892
893
# File 'generated/google/apis/blogger_v2/classes.rb', line 891

def image
  @image
end

#urlString

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

Returns:

  • (String)


896
897
898
# File 'generated/google/apis/blogger_v2/classes.rb', line 896

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



903
904
905
906
907
908
# File 'generated/google/apis/blogger_v2/classes.rb', line 903

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