Method: Hyperclient::EntryPoint#initialize

Defined in:
lib/hyperclient/entry_point.rb

#initialize(url) {|_self| ... } ⇒ EntryPoint

Initializes an EntryPoint.

Parameters:

  • url

    A String with the entry point of your API.

Yields:

  • (_self)

Yield Parameters:



38
39
40
41
42
43
44
45
# File 'lib/hyperclient/entry_point.rb', line 38

def initialize(url, &_block)
  @link = { 'href' => url }
  @entry_point = self
  @options = { async: true }
  @connection = nil
  @resource = nil
  yield self if block_given?
end