Class: HalClient::MalformedLink

Inherits:
Link
  • Object
show all
Defined in:
lib/hal_client/link.rb

Overview

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.

Instance Attribute Summary

Attributes inherited from Link

#curie_resolver, #literal_rel

Instance Method Summary collapse

Methods inherited from Link

#==, #fully_qualified_rel

Instance Method Details

#hashObject



155
156
157
# File 'lib/hal_client/link.rb', line 155

def hash
  fully_qualified_rel.hash
end

#raise_invalidObject Also known as: raw_href, target_url, target, templated?



146
147
148
# File 'lib/hal_client/link.rb', line 146

def raise_invalid(**)
  raise InvalidRepresentationError, msg
end