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



2229
2230
2231
# File 'generated/google/apis/people_v1/classes.rb', line 2229

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)


2202
2203
2204
# File 'generated/google/apis/people_v1/classes.rb', line 2202

def formatted_type
  @formatted_type
end

#metadataGoogle::Apis::PeopleV1::FieldMetadata

Metadata about a field. Corresponds to the JSON property metadata



2207
2208
2209
# File 'generated/google/apis/people_v1/classes.rb', line 2207

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 Google+ application.
  • other Corresponds to the JSON property type

Returns:

  • (String)


2222
2223
2224
# File 'generated/google/apis/people_v1/classes.rb', line 2222

def type
  @type
end

#valueString

The URL. Corresponds to the JSON property value

Returns:

  • (String)


2227
2228
2229
# File 'generated/google/apis/people_v1/classes.rb', line 2227

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2234
2235
2236
2237
2238
2239
# File 'generated/google/apis/people_v1/classes.rb', line 2234

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