Class: HalClient::SimpleLink

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

Overview

Links that are not templated.

Instance Attribute Summary

Attributes inherited from Link

#curie_resolver, #literal_rel

Instance Method Summary collapse

Methods inherited from Link

#==, #fully_qualified_rel, #hash

Instance Method Details

#raw_hrefObject



79
80
81
# File 'lib/hal_client/link.rb', line 79

def raw_href
  target.href
end

#target(_vars = {}) ⇒ Object



91
92
93
# File 'lib/hal_client/link.rb', line 91

def target(_vars = {})
  @target
end

#target_url(_vars = {}) ⇒ Object



87
88
89
# File 'lib/hal_client/link.rb', line 87

def target_url(_vars = {})
  target.href
end

#templated?Boolean

Returns:

  • (Boolean)


83
84
85
# File 'lib/hal_client/link.rb', line 83

def templated?
  false
end