Class: Google::Apis::PartnersV2::PublicProfile

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

Overview

Basic information from a public profile.

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

Returns a new instance of PublicProfile.



724
725
726
# File 'generated/google/apis/partners_v2/classes.rb', line 724

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

Instance Attribute Details

#display_image_urlString

The URL to the main display image of the public profile. Corresponds to the JSON property displayImageUrl

Returns:

  • (String)


722
723
724
# File 'generated/google/apis/partners_v2/classes.rb', line 722

def display_image_url
  @display_image_url
end

#display_nameString

The display name of the public profile. Corresponds to the JSON property displayName

Returns:

  • (String)


712
713
714
# File 'generated/google/apis/partners_v2/classes.rb', line 712

def display_name
  @display_name
end

#idString

The ID which can be used to retrieve more details about the public profile. Corresponds to the JSON property id

Returns:

  • (String)


707
708
709
# File 'generated/google/apis/partners_v2/classes.rb', line 707

def id
  @id
end

#urlString

The URL of the public profile. Corresponds to the JSON property url

Returns:

  • (String)


717
718
719
# File 'generated/google/apis/partners_v2/classes.rb', line 717

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



729
730
731
732
733
734
# File 'generated/google/apis/partners_v2/classes.rb', line 729

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