Class: Google::Apis::PlusDomainsV1::Person::Cover

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_domains_v1/classes.rb,
generated/google/apis/plus_domains_v1/representations.rb,
generated/google/apis/plus_domains_v1/representations.rb

Overview

The cover photo content.

Defined Under Namespace

Classes: CoverInfo, CoverPhoto

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

Returns a new instance of Cover.


2132
2133
2134
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2132

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

Instance Attribute Details

#cover_infoGoogle::Apis::PlusDomainsV1::Person::Cover::CoverInfo

Extra information about the cover photo. Corresponds to the JSON property coverInfo


2118
2119
2120
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2118

def cover_info
  @cover_info
end

#cover_photoGoogle::Apis::PlusDomainsV1::Person::Cover::CoverPhoto

The person's primary cover image. Corresponds to the JSON property coverPhoto


2123
2124
2125
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2123

def cover_photo
  @cover_photo
end

#layoutString

The layout of the cover art. Possible values include, but are not limited to, the following values:

  • "banner" - One large image banner. Corresponds to the JSON property layout

Returns:

  • (String)

2130
2131
2132
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2130

def layout
  @layout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2137
2138
2139
2140
2141
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2137

def update!(**args)
  @cover_info = args[:cover_info] if args.key?(:cover_info)
  @cover_photo = args[:cover_photo] if args.key?(:cover_photo)
  @layout = args[:layout] if args.key?(:layout)
end