Class: Songkick::Transport::RackTest

Inherits:
Base
  • Object
show all
Defined in:
lib/songkick/transport/rack_test.rb

Defined Under Namespace

Classes: Client

Instance Attribute Summary

Attributes inherited from Base

#user_agent, #user_error_codes

Instance Method Summary collapse

Methods inherited from Base

#do_verb, #with_headers, #with_timeout

Constructor Details

#initialize(app, options = {}) ⇒ RackTest

Returns a new instance of RackTest.



17
18
19
20
21
# File 'lib/songkick/transport/rack_test.rb', line 17

def initialize(app, options = {})
  @app     = app
  @timeout = options[:timeout] || DEFAULT_TIMEOUT
  @user_error_codes = options[:user_error_codes] || DEFAULT_USER_ERROR_CODES
end