Class: Google::Apis::DomainsrdapV1::Link

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#hrefString

Target URL of a link. Example: "http://example.com/previous". Corresponds to the JSON property href

Returns:

  • (String)


94
95
96
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 94

def href
  @href
end

#hreflangString

Language code of a link. Example: "en". Corresponds to the JSON property hreflang

Returns:

  • (String)


99
100
101
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 99

def hreflang
  @hreflang
end

#mediaString

Media type of the link destination. Example: "screen". Corresponds to the JSON property media

Returns:

  • (String)


104
105
106
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 104

def media
  @media
end

#relString

Relation type of a link. Example: "previous". Corresponds to the JSON property rel

Returns:

  • (String)


109
110
111
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 109

def rel
  @rel
end

#titleString

Title of this link. Example: "title". Corresponds to the JSON property title

Returns:

  • (String)


114
115
116
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 114

def title
  @title
end

#typeString

Content type of the link. Example: "application/json". Corresponds to the JSON property type

Returns:

  • (String)


119
120
121
# File 'generated/google/apis/domainsrdap_v1/classes.rb', line 119

def type
  @type
end

#valueString

URL giving context for the link. Example: "http://example.com/current". Corresponds to the JSON property value

Returns:

  • (String)


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