lib/seam/http_single_workspace.rb in seam-2.0.0b2 vs lib/seam/http_single_workspace.rb in seam-2.0.0b3
- old
+ new
@@ -1,10 +1,14 @@
# frozen_string_literal: true
require_relative "request"
require_relative "parse_options"
+require_relative "routes/resources/index"
+require_relative "routes/clients/index"
require_relative "routes/routes"
+require_relative "version"
+require_relative "deep_hash_accessor"
module Seam
module Http
class SingleWorkspace
include Seam::Routes
@@ -16,10 +20,10 @@
options = Http::Options.parse_options(api_key: api_key, personal_access_token: personal_access_token,
workspace_id: workspace_id, endpoint: endpoint)
@endpoint = options[:endpoint]
@auth_headers = options[:auth_headers]
@defaults = Seam::DeepHashAccessor.new({"wait_for_action_attempt" => wait_for_action_attempt})
- @client = client || Seam::Http::Request.create_faraday_client(@endpoint, @auth_headers, faraday_options,
+ @client = client || Http::Request.create_faraday_client(@endpoint, @auth_headers, faraday_options,
faraday_retry_options)
initialize_routes(client: @client, defaults: @defaults)
end