Method: Hyperclient::Link#initialize

Defined in:
lib/hyperclient/link.rb

#initialize(key, link, entry_point, uri_variables = nil) ⇒ Link

Initializes a new Link.

Parameters:

  • key

    The key or name of the link.

  • link

    The String with the URI of the link.

  • entry_point

    The EntryPoint object to inject the configuration.

  • uri_variables (defaults to: nil)

    The optional Hash with the variables to expand the link if it is templated.



16
17
18
19
20
21
22
# File 'lib/hyperclient/link.rb', line 16

def initialize(key, link, entry_point, uri_variables = nil)
  @key           = key
  @link          = link
  @entry_point   = entry_point
  @uri_variables = uri_variables
  @resource      = nil
end