Class: Google::Apis::DomainsrdapV1::Link
- Inherits:
-
Object
- Object
- Google::Apis::DomainsrdapV1::Link
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/domainsrdap_v1/classes.rb,
generated/google/apis/domainsrdap_v1/representations.rb,
generated/google/apis/domainsrdap_v1/representations.rb
Overview
Links object defined in section 4.2 of RFC 7483.
Instance Attribute Summary collapse
-
#href ⇒ String
Target URL of a link.
-
#hreflang ⇒ String
Language code of a link.
-
#media ⇒ String
Media type of the link destination.
-
#rel ⇒ String
Relation type of a link.
-
#title ⇒ String
Title of this link.
-
#type ⇒ String
Content type of the link.
-
#value ⇒ String
URL giving context for the link.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Link
constructor
A new instance of Link.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Link
Returns a new instance of Link.
126 127 128 |
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 126 def initialize(**args) update!(**args) end |
Instance Attribute Details
#href ⇒ String
Target URL of a link. Example: "http://example.com/previous".
Corresponds to the JSON property href
94 95 96 |
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 94 def href @href end |
#hreflang ⇒ String
Language code of a link. Example: "en".
Corresponds to the JSON property hreflang
99 100 101 |
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 99 def hreflang @hreflang end |
#media ⇒ String
Media type of the link destination. Example: "screen".
Corresponds to the JSON property media
104 105 106 |
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 104 def media @media end |
#rel ⇒ String
Relation type of a link. Example: "previous".
Corresponds to the JSON property rel
109 110 111 |
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 109 def rel @rel end |
#title ⇒ String
Title of this link. Example: "title".
Corresponds to the JSON property title
114 115 116 |
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 114 def title @title end |
#type ⇒ String
Content type of the link. Example: "application/json".
Corresponds to the JSON property type
119 120 121 |
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 119 def type @type end |
#value ⇒ String
URL giving context for the link. Example: "http://example.com/current".
Corresponds to the JSON property value
124 125 126 |
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 124 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
131 132 133 134 135 136 137 138 139 |
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 131 def update!(**args) @href = args[:href] if args.key?(:href) @hreflang = args[:hreflang] if args.key?(:hreflang) @media = args[:media] if args.key?(:media) @rel = args[:rel] if args.key?(:rel) @title = args[:title] if args.key?(:title) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |