Module: Evoke::HTTMockParty
- Defined in:
- lib/evoke_client/mock.rb
Defined Under Namespace
Modules: ClassMethods
Classes: NilResponder, Responder, Router
Class Method Summary
collapse
Class Method Details
.delete(path, query = {}) ⇒ Object
36
|
# File 'lib/evoke_client/mock.rb', line 36
def self.delete(path, query={}) router("delete").maps(path, query); end
|
.get(path, query = {}) ⇒ Object
The shunt part. Setting up routers for responses
33
|
# File 'lib/evoke_client/mock.rb', line 33
def self.get(path, query={}) router("get").maps(path, query); end
|
.included(base) ⇒ Object
6
7
8
|
# File 'lib/evoke_client/mock.rb', line 6
def self.included(base)
base.extend ClassMethods
end
|
.post(path, query = {}) ⇒ Object
34
|
# File 'lib/evoke_client/mock.rb', line 34
def self.post(path, query={}) router("post").maps(path, query); end
|
.put(path, query = {}) ⇒ Object
35
|
# File 'lib/evoke_client/mock.rb', line 35
def self.put(path, query={}) router("put").maps(path, query); end
|