Sha256: 8595d61c7fbb19cf37790f1b48b59a18556e8e79353f89f00f986d171debd2a3

Contents?: true

Size: 1011 Bytes

Versions: 26

Compression:

Stored size: 1011 Bytes

Contents

# typed: ignore
# frozen_string_literal: true

module Setsuzoku
  module Service
    module WebService
      # WebService's Service should define all available auth and api strategies.
      class Service
        extend T::Sig
        extend T::Helpers
        include Setsuzoku::Service

        # The api and auth strategies available for WebService.
        #
        # @return [Hash(Hash(Class))] the available_strategies object for WebService.
        sig { override.returns(T::Hash[Symbol, T::Hash[Symbol, Class]]) }
        def self.available_strategies
          {
            auth: {
                basic: Setsuzoku::Service::WebService::AuthStrategies::BasicAuthStrategy,
                custom: Setsuzoku::Service::WebService::AuthStrategies::CustomAuthStrategy,
                o_auth: Setsuzoku::Service::WebService::AuthStrategies::OAuthStrategy
            },
            api: {
                rest:  ApiStrategies::RestStrategy
            }
          }
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
setsuzoku-0.15.7 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.15.6 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.15.5 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.15.4 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.15.3 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.15.2 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.15.1 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.15.0 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.9 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.8 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.7 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.6 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.5 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.4 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.3 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.2 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.1 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.14.0 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.13.1 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.13.0 lib/setsuzoku/service/web_service/service.rb