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
Output only.
-
#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.
Constructor Details
#initialize(**args) ⇒ Url
Returns a new instance of Url.
2585 2586 2587 |
# File 'generated/google/apis/people_v1/classes.rb', line 2585 def initialize(**args) update!(**args) end |
Instance Attribute Details
#formatted_type ⇒ String
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
2566 2567 2568 |
# File 'generated/google/apis/people_v1/classes.rb', line 2566 def formatted_type @formatted_type end |
#metadata ⇒ Google::Apis::PeopleV1::FieldMetadata
Metadata about a field.
Corresponds to the JSON property metadata
2571 2572 2573 |
# File 'generated/google/apis/people_v1/classes.rb', line 2571 def @metadata end |
#type ⇒ String
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 propertytype
2578 2579 2580 |
# File 'generated/google/apis/people_v1/classes.rb', line 2578 def type @type end |
#value ⇒ String
The URL.
Corresponds to the JSON property value
2583 2584 2585 |
# File 'generated/google/apis/people_v1/classes.rb', line 2583 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2590 2591 2592 2593 2594 2595 |
# File 'generated/google/apis/people_v1/classes.rb', line 2590 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 |