module RSpecApi::Resource::Options

Public Instance Methods

adapter(*args) click to toggle source
# File lib/rspec-api/resource/options.rb, line 4
def adapter(*args)
  rspec_api_resource[:adapter] = args
end
authorize_with(auth_params = {}) click to toggle source
# File lib/rspec-api/resource/options.rb, line 16
def authorize_with(auth_params = {})
  rspec_api_resource[:authorize_with] = auth_params
end
host(host) click to toggle source
# File lib/rspec-api/resource/options.rb, line 8
def host(host)
  rspec_api_resource[:host] = host
end
throttle(seconds_to_sleep) click to toggle source
# File lib/rspec-api/resource/options.rb, line 12
def throttle(seconds_to_sleep)
  rspec_api_resource[:throttle] = seconds_to_sleep
end

Private Instance Methods

rspec_api_resource() click to toggle source
# File lib/rspec-api/resource/options.rb, line 22
def rspec_api_resource
  (metadata[:rspec_api_resource] ||= {})
end