# File lib/rhc/rest/mock.rb, line 44 def mock_response_links(links) link_set = {} links.each do |link| operation = link[0] href = link[1] method = link[2] # Note that the 'relative' key/value pair below is a convenience for testing; # this is not used by the API classes. link_set[operation] = { 'href' => mock_href(href), 'method' => method, 'relative' => href } end return link_set end