Class: Google::Apis::PeopleV1::Photo

Inherits:
Object
  • Object
show all
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 photo. A picture shown next to the person's name to help others recognize the person.

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

Returns a new instance of Photo



1608
1609
1610
# File 'generated/google/apis/people_v1/classes.rb', line 1608

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

Instance Attribute Details

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1606
1607
1608
# File 'generated/google/apis/people_v1/classes.rb', line 1606

def 
  @metadata
end

#urlString

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

Returns:

  • (String)


1601
1602
1603
# File 'generated/google/apis/people_v1/classes.rb', line 1601

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1613
1614
1615
1616
# File 'generated/google/apis/people_v1/classes.rb', line 1613

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