Class: Teamlab::Request

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

Instance Method Summary collapse

Constructor Details

#initialize(config, api_additive) ⇒ Request

Returns a new instance of Request.



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

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

Instance Method Details

#delete(*args) ⇒ Object



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

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

#get(*args) ⇒ Object



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

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

#post(*args) ⇒ Object



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

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

#put(*args) ⇒ Object



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

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