Class: Google::Apis::PeopleV1::Url

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 associated URLs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Url

Returns a new instance of Url.



2857
2858
2859
# File 'lib/google/apis/people_v1/classes.rb', line 2857

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

Instance Attribute Details

#formatted_typeString

Output only. The type of the URL translated and formatted in the viewer's account locale or the Accept-Language HTTP header locale. Corresponds to the JSON property formattedType

Returns:

  • (String)


2838
2839
2840
# File 'lib/google/apis/people_v1/classes.rb', line 2838

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



2843
2844
2845
# File 'lib/google/apis/people_v1/classes.rb', line 2843

def 
  @metadata
end

#typeString

The type of the URL. The type can be custom or one of these predefined values:

  • home * work * blog * profile * homePage * ftp * reservations * appInstallPage: website for a Currents application. * other Corresponds to the JSON property type

Returns:

  • (String)


2850
2851
2852
# File 'lib/google/apis/people_v1/classes.rb', line 2850

def type
  @type
end

#valueString

The URL. Corresponds to the JSON property value

Returns:

  • (String)


2855
2856
2857
# File 'lib/google/apis/people_v1/classes.rb', line 2855

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2862
2863
2864
2865
2866
2867
# File 'lib/google/apis/people_v1/classes.rb', line 2862

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