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
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