Class: Teamlab::Request

Inherits:
Object
  • Object
show all
Includes:
HTTMultiParty
Defined in:
lib/teamlab/request.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_additive) ⇒ Request

Returns a new instance of Request.



12
13
14
# File 'lib/teamlab/request.rb', line 12

def initialize(api_additive)
  @api_additive = api_additive.to_s
end

Instance Method Details

#delete(*args) ⇒ Object



28
29
30
# File 'lib/teamlab/request.rb', line 28

def delete(*args)
  request(:delete, args)
end

#get(*args) ⇒ Object



20
21
22
# File 'lib/teamlab/request.rb', line 20

def get(*args)
  request(:get, args)
end

#post(*args) ⇒ Object



16
17
18
# File 'lib/teamlab/request.rb', line 16

def post(*args)
  request(:post, args)
end

#put(*args) ⇒ Object



24
25
26
# File 'lib/teamlab/request.rb', line 24

def put(*args)
  request(:put, args)
end