module Fog::Scaleway::RequestHelper

Public Instance Methods

create(path, body) click to toggle source
# File lib/fog/scaleway/request_helper.rb, line 4
def create(path, body)
  request(method: :post,
          path: path,
          body: body,
          expects: [201])
end
delete(path) click to toggle source
# File lib/fog/scaleway/request_helper.rb, line 25
def delete(path)
  request(method: :delete,
          path: path,
          expects: [204])
end
get(path, query = {}) click to toggle source
# File lib/fog/scaleway/request_helper.rb, line 11
def get(path, query = {})
  request(method: :get,
          path: path,
          query: query,
          expects: [200])
end
update(path, body) click to toggle source
# File lib/fog/scaleway/request_helper.rb, line 18
def update(path, body)
  request(method: :put,
          path: path,
          body: body,
          expects: [200])
end