Module: HelloBlock::Request

Includes:
Endpoints
Included in:
HelloBlock
Defined in:
lib/helloblock/http/request.rb

Constant Summary

Constants included from Endpoints

Endpoints::ENDPOINTS

Instance Method Summary collapse

Methods included from Endpoints

#base_url, #version_path

Instance Method Details

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



8
9
10
# File 'lib/helloblock/http/request.rb', line 8

def get(path, params={})
  request(:get, version_path + path, params, headers)
end

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



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

def post(path, params={})
  request(:post, version_path + path, { body: params }, headers)
end