Sha256: 831a461c6ed0e69c86fc8edeaa675a8677b8f012ed1adf2f94d32e9d632ccaa0
Contents?: true
Size: 545 Bytes
Versions: 4
Compression:
Stored size: 545 Bytes
Contents
module Peakium class Event < APIResource include Peakium::APIOperations::List def validate(data) response, api_key = Peakium.request(:post, validate_url, @api_key, data) refresh_from(response, api_key) self end def send(params={}) response, api_key = Peakium.request(:post, send_url, @api_key, params) refresh_from(response, api_key) self end private def validate_url endpoint_url + '/validate' end def send_url endpoint_url + '/send' end end end
Version data entries
4 entries across 4 versions & 1 rubygems