Sha256: d28f24727cc615a3c06b6e228a40937c7e16473ced2a075880cca76298da0f74

Contents?: true

Size: 919 Bytes

Versions: 17

Compression:

Stored size: 919 Bytes

Contents

# typed: strict
# 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,
                o_auth: Setsuzoku::Service::WebService::AuthStrategies::OAuthStrategy
            },
            api: {
                rest:  ApiStrategies::RestStrategy
            }
          }
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
setsuzoku-0.11.9 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.11.8 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.11.7 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.11.6 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.11.5 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.11.0 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.12 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.11 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.10 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.9 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.8 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.7 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.6 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.5 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.4 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.3 lib/setsuzoku/service/web_service/service.rb
setsuzoku-0.10.1 lib/setsuzoku/service/web_service/service.rb