Method: Hyperclient::Link#_expand

Defined in:
lib/hyperclient/link.rb

#_expand(uri_variables = {}) ⇒ Object

Expands the Link when is templated with the given variables.

Parameters:

  • uri_variables (defaults to: {})

    The Hash with the variables to expand the URITemplate.

Returns:

  • a new Link with the expanded variables.



56
57
58
# File 'lib/hyperclient/link.rb', line 56

def _expand(uri_variables = {})
  self.class.new(@key, @link, @entry_point, uri_variables)
end