Module: Sofia
- Defined in:
- lib/sofia/error.rb,
lib/sofia.rb,
lib/sofia/types.rb,
lib/sofia/client.rb,
lib/sofia/helper.rb,
lib/sofia/adapter.rb,
lib/sofia/request.rb,
lib/sofia/version.rb,
lib/sofia/response.rb,
lib/sofia/types/body.rb,
lib/sofia/types/path.rb,
lib/sofia/sorbet_types.rb,
lib/sofia/types/params.rb,
lib/sofia/types/adapter.rb,
lib/sofia/types/headers.rb,
lib/sofia/types/base_url.rb,
lib/sofia/error/ssl_error.rb,
lib/sofia/adapter/net_http.rb,
lib/sofia/error/invalid_json.rb,
lib/sofia/error/timeout_error.rb,
lib/sofia/error/argument_error.rb,
lib/sofia/error/connection_failed.rb
Overview
typed: strict frozen_string_literal: true
Defined Under Namespace
Modules: Adapter, Error, Helper, Types Classes: Client, Request, Response
Constant Summary collapse
- VERSION =
'0.1.0'- JSONValue =
JSONValue represents any valid JSON data
T.type_alias do T.any( String, Integer, Float, TrueClass, FalseClass, NilClass, T::Array[T.untyped], T::Hash[String, T.untyped], ) end
Class Method Summary collapse
-
.new(base_url:, adapter: nil) ⇒ Object
: (base_url: untyped, ?adapter: untyped) -> Sofia::Client.
Class Method Details
.new(base_url:, adapter: nil) ⇒ Object
: (base_url: untyped, ?adapter: untyped) -> Sofia::Client
21 22 23 |
# File 'lib/sofia.rb', line 21 def new(base_url:, adapter: nil) Client.new(base_url: base_url, adapter: adapter) end |