Class: Google::Apis::PlusV1::Person::Url

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_v1/classes.rb,
generated/google/apis/plus_v1/representations.rb,
generated/google/apis/plus_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.



1954
1955
1956
# File 'generated/google/apis/plus_v1/classes.rb', line 1954

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

Instance Attribute Details

#labelString

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

Returns:

  • (String)


1937
1938
1939
# File 'generated/google/apis/plus_v1/classes.rb', line 1937

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)


1947
1948
1949
# File 'generated/google/apis/plus_v1/classes.rb', line 1947

def type
  @type
end

#valueString

The URL value. Corresponds to the JSON property value

Returns:

  • (String)


1952
1953
1954
# File 'generated/google/apis/plus_v1/classes.rb', line 1952

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1959
1960
1961
1962
1963
# File 'generated/google/apis/plus_v1/classes.rb', line 1959

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