Class: RspecApiDocumentation::ClientBase
- Inherits:
-
Struct
- Object
- Struct
- RspecApiDocumentation::ClientBase
show all
- Includes:
- Headers
- Defined in:
- lib/rspec_api_documentation/client_base.rb
Overview
Base client class that documents all requests that go through it.
client.get("/orders", { :page => 2 }, { "Accept" => "application/json" })
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
5
6
7
|
# File 'lib/rspec_api_documentation/client_base.rb', line 5
def context
@context
end
|
#options ⇒ Object
Returns the value of attribute options
5
6
7
|
# File 'lib/rspec_api_documentation/client_base.rb', line 5
def options
@options
end
|
Instance Method Details
#delete(*args) ⇒ Object
23
24
25
|
# File 'lib/rspec_api_documentation/client_base.rb', line 23
def delete(*args)
process :delete, *args
end
|
#get(*args) ⇒ Object
11
12
13
|
# File 'lib/rspec_api_documentation/client_base.rb', line 11
def get(*args)
process :get, *args
end
|
#head(*args) ⇒ Object
27
28
29
|
# File 'lib/rspec_api_documentation/client_base.rb', line 27
def head(*args)
process :head, *args
end
|
#patch(*args) ⇒ Object
31
32
33
|
# File 'lib/rspec_api_documentation/client_base.rb', line 31
def patch(*args)
process :patch, *args
end
|
#post(*args) ⇒ Object
15
16
17
|
# File 'lib/rspec_api_documentation/client_base.rb', line 15
def post(*args)
process :post, *args
end
|
#put(*args) ⇒ Object
19
20
21
|
# File 'lib/rspec_api_documentation/client_base.rb', line 19
def put(*args)
process :put, *args
end
|
#response_status ⇒ Object
35
36
37
|
# File 'lib/rspec_api_documentation/client_base.rb', line 35
def response_status
status
end
|