Module: RSpecApi::Resource::Options

Included in:
RSpecApi::Resource
Defined in:
lib/rspec-api/resource/options.rb

Instance Method Summary collapse

Instance Method Details

#adapter(*args) ⇒ Object



4
5
6
# File 'lib/rspec-api/resource/options.rb', line 4

def adapter(*args)
  rspec_api_resource[:adapter] = args
end

#authorize_with(auth_params = {}) ⇒ Object



16
17
18
# File 'lib/rspec-api/resource/options.rb', line 16

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

#host(host) ⇒ Object



8
9
10
# File 'lib/rspec-api/resource/options.rb', line 8

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

#throttle(seconds_to_sleep) ⇒ Object



12
13
14
# File 'lib/rspec-api/resource/options.rb', line 12

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