Sha256: 65ceaefb60f4c176bc8dca836bb276366b0822a05291cc3121e0fc4fee7c7816
Contents?: true
Size: 825 Bytes
Versions: 10
Compression:
Stored size: 825 Bytes
Contents
module Kanaui module DashboardHelper class DashboardApi < KillBillClient::Model::Resource KILLBILL_ANALYTICS_PREFIX = "/plugins/killbill-analytics" class << self def available_reports(options = {}) path = "#{KILLBILL_ANALYTICS_PREFIX}/plugins/killbill-analytics/reports" response = KillBillClient::API.get path, {}, options response.body end def reports(start_date, end_date, name, smooth, format, options = {}) path = "#{KILLBILL_ANALYTICS_PREFIX}/plugins/killbill-analytics/reports?format=json&startDate=#{start_date}&endDate=#{end_date}&name=#{name}" path = "#{path}&smooth=#{smooth}" if smooth response = KillBillClient::API.get path, {}, options response.body end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems