Class: Google::Apis::PlusV1::Person::Cover

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



1654
1655
1656
# File 'generated/google/apis/plus_v1/classes.rb', line 1654

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

Instance Attribute Details

#cover_infoGoogle::Apis::PlusV1::Person::Cover::CoverInfo

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



1640
1641
1642
# File 'generated/google/apis/plus_v1/classes.rb', line 1640

def cover_info
  @cover_info
end

#cover_photoGoogle::Apis::PlusV1::Person::Cover::CoverPhoto

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



1645
1646
1647
# File 'generated/google/apis/plus_v1/classes.rb', line 1645

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)


1652
1653
1654
# File 'generated/google/apis/plus_v1/classes.rb', line 1652

def layout
  @layout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1659
1660
1661
1662
1663
# File 'generated/google/apis/plus_v1/classes.rb', line 1659

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