Sha256: b52d22c62ba349bf11094d697493bb1debf74b40f884ee964803aeaf5a389959

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

module RSpecApi
  module Resource
    module Options
      def adapter(*args)
        rspec_api_resource[:adapter] = args
      end

      def host(host)
        rspec_api_resource[:host] = host
      end

      def throttle(seconds_to_sleep)
        rspec_api_resource[:throttle] = seconds_to_sleep
      end

      def authorize_with(auth_params = {})
        rspec_api_resource[:authorize_with] = auth_params
      end

    private

      def rspec_api_resource
        (metadata[:rspec_api_resource] ||= {})
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-api-0.7.1 lib/rspec-api/resource/options.rb
rspec-api-0.7.0 lib/rspec-api/resource/options.rb