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

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

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

Returns a new instance of Url.



1023
1024
1025
# File 'generated/google/apis/people_v1/classes.rb', line 1023

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

Instance Attribute Details

#formatted_typeString

The read-only 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)


1021
1022
1023
# File 'generated/google/apis/people_v1/classes.rb', line 1021

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



1002
1003
1004
# File 'generated/google/apis/people_v1/classes.rb', line 1002

def 
  @metadata
end

#typeString

The type of the URL. The type can be custom or predefined. Possible values include, but are not limited to, the following: * home * work * blog * profile * homePage * ftp * reservations * appInstallPage: website for a Google+ application. * other Corresponds to the JSON property type

Returns:

  • (String)


1015
1016
1017
# File 'generated/google/apis/people_v1/classes.rb', line 1015

def type
  @type
end

#valueString

The URL. Corresponds to the JSON property value

Returns:

  • (String)


1007
1008
1009
# File 'generated/google/apis/people_v1/classes.rb', line 1007

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1028
1029
1030
1031
1032
1033
# File 'generated/google/apis/people_v1/classes.rb', line 1028

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