class Google::Apis::DomainsrdapV1::Link

Links object defined in [section 4.2 of RFC 7483](tools.ietf.org/html/ rfc7483#section-4.2).

Attributes

href[RW]

Target URL of a link. Example: “example.com/previous”. Corresponds to the JSON property `href` @return [String]

hreflang[RW]

Language code of a link. Example: “en”. Corresponds to the JSON property `hreflang` @return [String]

media[RW]

Media type of the link destination. Example: “screen”. Corresponds to the JSON property `media` @return [String]

rel[RW]

Relation type of a link. Example: “previous”. Corresponds to the JSON property `rel` @return [String]

title[RW]

Title of this link. Example: “title”. Corresponds to the JSON property `title` @return [String]

type[RW]

Content type of the link. Example: “application/json”. Corresponds to the JSON property `type` @return [String]

value[RW]

URL giving context for the link. Example: “example.com/current”. Corresponds to the JSON property `value` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/domainsrdap_v1/classes.rb, line 113
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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