Module: Hactor

Defined in:
lib/hactor/hal/embedded_collection.rb,
lib/hactor.rb,
lib/hactor/actor.rb,
lib/hactor/version.rb,
lib/hactor/hal/link.rb,
lib/hactor/null_actor.rb,
lib/hactor/http/client.rb,
lib/hactor/hal/document.rb,
lib/hactor/hal/resource.rb,
lib/hactor/hal/null_link.rb,
lib/hactor/http/response.rb,
lib/hactor/hal/flat_collection.rb,
lib/hactor/hal/link_collection.rb

Overview

require ‘hactor/hal/null_resource’

Defined Under Namespace

Modules: Actor, HAL, HTTP Classes: NullActor

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.start(options) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/hactor.rb', line 7

def self.start(options)
  url = options.fetch :url

  actor = options[:actor] || NullActor.new
  http_client = options[:http_client] || Hactor::HTTP::Client.new

  http_client.get(url, actor: actor)
end