Class: Google::Apis::PeopleV1::CoverPhoto
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PeopleV1::CoverPhoto
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/people_v1/classes.rb,
 generated/google/apis/people_v1/representations.rb,
 generated/google/apis/people_v1/representations.rb
Overview
A person's read-only 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
- 
  
    
      #default  ⇒ Boolean 
    
    
      (also: #default?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    True if the cover photo is the default cover photo; false if the cover photo is a user-provided cover photo. 
- 
  
    
      #metadata  ⇒ Google::Apis::PeopleV1::FieldMetadata 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Metadata about a field. 
- 
  
    
      #url  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URL of the cover photo. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CoverPhoto 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CoverPhoto. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CoverPhoto
Returns a new instance of CoverPhoto
| 471 472 473 | # File 'generated/google/apis/people_v1/classes.rb', line 471 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#default ⇒ Boolean 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
| 458 459 460 | # File 'generated/google/apis/people_v1/classes.rb', line 458 def default @default end | 
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
| 464 465 466 | # File 'generated/google/apis/people_v1/classes.rb', line 464 def @metadata end | 
#url ⇒ String
The URL of the cover photo.
Corresponds to the JSON property url
| 469 470 471 | # File 'generated/google/apis/people_v1/classes.rb', line 469 def url @url end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 476 477 478 479 480 | # File 'generated/google/apis/people_v1/classes.rb', line 476 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 |