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

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

Instance Method Summary collapse

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

#hrefString

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

Returns:

  • (String)


81
82
83
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 81

def href
  @href
end

#hreflangString

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

Returns:

  • (String)


86
87
88
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 86

def hreflang
  @hreflang
end

#mediaString

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

Returns:

  • (String)


91
92
93
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 91

def media
  @media
end

#relString

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

Returns:

  • (String)


96
97
98
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 96

def rel
  @rel
end

#titleString

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

Returns:

  • (String)


101
102
103
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 101

def title
  @title
end

#typeString

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

Returns:

  • (String)


106
107
108
# File 'lib/google/apis/domainsrdap_v1/classes.rb', line 106

def type
  @type
end

#valueString

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

Returns:

  • (String)


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