Class: Juke::Adapters::Rack

Inherits:
Object
  • Object
show all
Includes:
Rack::Test::Methods
Defined in:
lib/juke/adapters/rack.rb

Direct Known Subclasses

Rails

Instance Method Summary collapse

Instance Method Details

#appObject



22
23
24
# File 'lib/juke/adapters/rack.rb', line 22

def app
  Juke.app
end

#delete_with_juke(url, params = {}) ⇒ Object



41
42
43
# File 'lib/juke/adapters/rack.rb', line 41

def delete_with_juke(url, params = {})
  delete_without_juke(url, params)
end

#get_with_juke(url, params = {}) ⇒ Object



26
27
28
# File 'lib/juke/adapters/rack.rb', line 26

def get_with_juke(url, params = {})
  get_without_juke(url, params)
end

#post_with_juke(url, params = {}) ⇒ Object



31
32
33
# File 'lib/juke/adapters/rack.rb', line 31

def post_with_juke(url, params = {})
  post_without_juke(url, params)
end

#put_with_juke(url, params = {}) ⇒ Object



36
37
38
# File 'lib/juke/adapters/rack.rb', line 36

def put_with_juke(url, params = {})
  put_without_juke(url, params)
end

#raw_response_bodyObject



46
47
48
# File 'lib/juke/adapters/rack.rb', line 46

def raw_response_body
  last_response.body
end

#response_statusObject



50
51
52
# File 'lib/juke/adapters/rack.rb', line 50

def response_status
  last_response.status
end