Class: Google::Apis::PeopleV1::CoverPhoto

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

Overview

A person's cover photo. A large image shown on the person's profile page that represents who they are or what they care about.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CoverPhoto

Returns a new instance of CoverPhoto.



732
733
734
# File 'lib/google/apis/people_v1/classes.rb', line 732

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

Instance Attribute Details

#defaultBoolean Also known as: default?

True if the cover photo is the default cover photo; false if the cover photo is a user-provided cover photo. Corresponds to the JSON property default

Returns:

  • (Boolean)


719
720
721
# File 'lib/google/apis/people_v1/classes.rb', line 719

def default
  @default
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



725
726
727
# File 'lib/google/apis/people_v1/classes.rb', line 725

def 
  @metadata
end

#urlString

The URL of the cover photo. Corresponds to the JSON property url

Returns:

  • (String)


730
731
732
# File 'lib/google/apis/people_v1/classes.rb', line 730

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



737
738
739
740
741
# File 'lib/google/apis/people_v1/classes.rb', line 737

def update!(**args)
  @default = args[:default] if args.key?(:default)
  @metadata = args[:metadata] if args.key?(:metadata)
  @url = args[:url] if args.key?(:url)
end