Class: Google::Apis::DomainsrdapV1::Link
- Inherits:
-
Object
- Object
- Google::Apis::DomainsrdapV1::Link
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/domainsrdap_v1/classes.rb,
lib/google/apis/domainsrdap_v1/representations.rb,
lib/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.
Constructor Details
#initialize(**args) ⇒ Link
Returns a new instance of Link.
113 114 115 |
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 113 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
81 82 83 |
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 81 def href @href end |
#hreflang ⇒ String
Language code of a link. Example: "en".
Corresponds to the JSON property hreflang
86 87 88 |
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 86 def hreflang @hreflang end |
#media ⇒ String
Media type of the link destination. Example: "screen".
Corresponds to the JSON property media
91 92 93 |
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 91 def media @media end |
#rel ⇒ String
Relation type of a link. Example: "previous".
Corresponds to the JSON property rel
96 97 98 |
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 96 def rel @rel end |
#title ⇒ String
Title of this link. Example: "title".
Corresponds to the JSON property title
101 102 103 |
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 101 def title @title end |
#type ⇒ String
Content type of the link. Example: "application/json".
Corresponds to the JSON property type
106 107 108 |
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 106 def type @type end |
#value ⇒ String
URL giving context for the link. Example: "http://example.com/current".
Corresponds to the JSON property value
111 112 113 |
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 111 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
118 119 120 121 122 123 124 125 126 |
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 118 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 |