class RemoteDatabaseCleaner::Http

Public Class Methods

post(config, params, rest_client = RestClient) click to toggle source
# File lib/remote_database_cleaner/http.rb, line 5
def self.post(config, params, rest_client = RestClient)
  new.post(config, params, rest_client)
end

Public Instance Methods

post(config, params, rest_client) click to toggle source
# File lib/remote_database_cleaner/http.rb, line 9
def post(config, params, rest_client)
  config.raise_if_host_not_set
  rest_client.post config.home_url, params, content_type: :json, accept: :json
end