class Client
Public Instance Methods
send(measurement, config)
click to toggle source
# File lib/wattics-api-client/client.rb, line 4 def send(measurement, config) response = RestClient::Request.execute(method: :post, url: config.uri, user: config.username, password: config.password, payload: measurement.json) return response rescue RestClient::ExceptionWithResponse => e return e.response end