Class: Google::Apis::PlusV1::Person::Url
- Inherits:
-
Object
- Object
- Google::Apis::PlusV1::Person::Url
- 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
-
#label ⇒ String
The label of the URL.
-
#type ⇒ String
The type of URL.
-
#value ⇒ String
The URL value.
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
1954 1955 1956 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1954 def initialize(**args) update!(**args) end |
Instance Attribute Details
#label ⇒ String
The label of the URL.
Corresponds to the JSON property label
1937 1938 1939 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1937 def label @label end |
#type ⇒ String
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
1947 1948 1949 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1947 def type @type end |
#value ⇒ String
The URL value.
Corresponds to the JSON property value
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 |