Class: ApiTaster::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/api_taster/mapper.rb

Class Method Summary collapse

Class Method Details

.delete(path, params = {}) ⇒ Object



16
17
18
# File 'lib/api_taster/mapper.rb', line 16

def delete(path, params = {})
  map_method(:delete, path, params)
end

.get(path, params = {}) ⇒ Object



4
5
6
# File 'lib/api_taster/mapper.rb', line 4

def get(path, params = {})
  map_method(:get, path, params)
end

.post(path, params = {}) ⇒ Object



8
9
10
# File 'lib/api_taster/mapper.rb', line 8

def post(path, params = {})
  map_method(:post, path, params)
end

.put(path, params = {}) ⇒ Object



12
13
14
# File 'lib/api_taster/mapper.rb', line 12

def put(path, params = {})
  map_method(:put, path, params)
end