class HalClient::MalformedLink

A link that was malformed in the JSON. This class is used to delay presenting interpretation errors so that consumers can ignore malformedness that does not block their goal. For example, busted links that they will not use anyway.

Attributes

msg[R]

Public Instance Methods

hash() click to toggle source
# File lib/hal_client/link.rb, line 155
def hash
  fully_qualified_rel.hash
end
raise_invalid(**) click to toggle source
# File lib/hal_client/link.rb, line 146
def raise_invalid(**)
  raise InvalidRepresentationError, msg
end
Also aliased as: raw_href, target_url, target, templated?
raw_href(**)
Alias for: raise_invalid
target(**)
Alias for: raise_invalid
target_url(**)
Alias for: raise_invalid
templated?(**)
Alias for: raise_invalid

Protected Instance Methods

post_initialize(msg:) click to toggle source
# File lib/hal_client/link.rb, line 142
          def post_initialize(msg:)
  @msg = msg
end