Class: Google::Apis::PeopleV1::Url
- Inherits:
-
Object
- Object
- Google::Apis::PeopleV1::Url
- 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
-
#formatted_type ⇒ String
The read-only type of the URL translated and formatted in the viewer's account locale or the
Accept-LanguageHTTP header locale. -
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
-
#type ⇒ String
The type of the URL.
-
#value ⇒ String
The URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Url
constructor
A new instance of Url.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Url
Returns a new instance of Url
2026 2027 2028 |
# File 'generated/google/apis/people_v1/classes.rb', line 2026 def initialize(**args) update!(**args) end |
Instance Attribute Details
#formatted_type ⇒ String
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
2024 2025 2026 |
# File 'generated/google/apis/people_v1/classes.rb', line 2024 def formatted_type @formatted_type end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
2013 2014 2015 |
# File 'generated/google/apis/people_v1/classes.rb', line 2013 def @metadata end |
#type ⇒ String
The type of the URL. The type can be custom or predefined. Possible values include, but are not limited to, the following:
homeworkblogprofilehomePageftpreservationsappInstallPage: website for a Google+ application.otherCorresponds to the JSON propertytype
2008 2009 2010 |
# File 'generated/google/apis/people_v1/classes.rb', line 2008 def type @type end |
#value ⇒ String
The URL.
Corresponds to the JSON property value
2018 2019 2020 |
# File 'generated/google/apis/people_v1/classes.rb', line 2018 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2031 2032 2033 2034 2035 2036 |
# File 'generated/google/apis/people_v1/classes.rb', line 2031 def update!(**args) @type = args[:type] if args.key?(:type) @metadata = args[:metadata] if args.key?(:metadata) @value = args[:value] if args.key?(:value) @formatted_type = args[:formatted_type] if args.key?(:formatted_type) end |