Module: Spice::Request

Included in:
Connection
Defined in:
lib/spice/request.rb,
lib/spice/request/auth.rb

Defined Under Namespace

Classes: Auth

Instance Method Summary collapse

Instance Method Details

#delete(path, params = {}, options = Mash.new) ⇒ Object


22
23
24
# File 'lib/spice/request.rb', line 22

def delete(path, params={}, options=Mash.new)
  request(:delete, path, params, options)
end

#get(path, params = {}, options = Mash.new) ⇒ Object


10
11
12
# File 'lib/spice/request.rb', line 10

def get(path, params={}, options=Mash.new)
  request(:get, path, params, options)
end

#post(path, params = {}, options = Mash.new) ⇒ Object


14
15
16
# File 'lib/spice/request.rb', line 14

def post(path, params={}, options=Mash.new)
  request(:post, path, params, options)
end

#put(path, params = {}, options = Mash.new) ⇒ Object


18
19
20
# File 'lib/spice/request.rb', line 18

def put(path, params={}, options=Mash.new)
  request(:put, path, params, options)
end