Class: Google::Apis::PlusDomainsV1::Person::Url

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_domains_v1/classes.rb,
generated/google/apis/plus_domains_v1/representations.rb,
generated/google/apis/plus_domains_v1/representations.rb

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.



2432
2433
2434
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2432

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

Instance Attribute Details

#labelString

The label of the URL. Corresponds to the JSON property label

Returns:

  • (String)


2415
2416
2417
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2415

def label
  @label
end

#typeString

The type of URL. Possible values include, but are not limited to, the following values:

  • "otherProfile" - URL for another profile.
  • "contributor" - URL to a site for which this person is a contributor.
  • "website" - URL for this Google+ Page's primary website.
  • "other" - Other URL. Corresponds to the JSON property type

Returns:

  • (String)


2425
2426
2427
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2425

def type
  @type
end

#valueString

The URL value. Corresponds to the JSON property value

Returns:

  • (String)


2430
2431
2432
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2430

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2437
2438
2439
2440
2441
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2437

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