class HalClient::SimpleLink
Links that are not templated.
Public Instance Methods
raw_href()
click to toggle source
# File lib/hal_client/link.rb, line 79 def raw_href target.href end
target(_vars = {})
click to toggle source
# File lib/hal_client/link.rb, line 91 def target(_vars = {}) @target end
target_url(_vars = {})
click to toggle source
# File lib/hal_client/link.rb, line 87 def target_url(_vars = {}) target.href end
templated?()
click to toggle source
# File lib/hal_client/link.rb, line 83 def templated? false end
Protected Instance Methods
post_initialize(target:)
click to toggle source
# File lib/hal_client/link.rb, line 73 def post_initialize(target:) fail(ArgumentError) unless target.kind_of?(HalClient::Representation) @target = target end