Sha256: c652f2539d6030b43d1903f2accf399993e0f6ca09d82f59e017cedb9aa04b21

Contents?: true

Size: 744 Bytes

Versions: 71

Compression:

Stored size: 744 Bytes

Contents

module Bearcat
  class Client < Footrest::Client
    module Reports

      def report_list(account)
        get("/api/v1/accounts/#{account}/reports")
      end

      def start_report(account, report_name, params = {})
        post("/api/v1/accounts/#{account}/reports/#{report_name}", params)
      end

      def report_history(account, report_name)
        get("/api/v1/accounts/#{account}/reports/#{report_name}")
      end

      def report_status(account, report_name, report_id)
        get("/api/v1/accounts/#{account}/reports/#{report_name}/#{report_id}")
      end

      def delete_report(account, report_name, report_id)
        delete("/api/v1/accounts/#{account}/reports/#{report_name}/#{report_id}")
      end

    end
  end
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
bearcat-1.1.0 lib/bearcat/client/reports.rb
bearcat-1.0.28 lib/bearcat/client/reports.rb
bearcat-1.0.27 lib/bearcat/client/reports.rb
bearcat-1.0.26 lib/bearcat/client/reports.rb
bearcat-1.0.25 lib/bearcat/client/reports.rb
bearcat-1.0.24 lib/bearcat/client/reports.rb
bearcat-1.0.23 lib/bearcat/client/reports.rb
bearcat-1.0.22 lib/bearcat/client/reports.rb
bearcat-1.0.21 lib/bearcat/client/reports.rb
bearcat-1.0.20 lib/bearcat/client/reports.rb
bearcat-1.0.19 lib/bearcat/client/reports.rb
bearcat-1.0.18 lib/bearcat/client/reports.rb
bearcat-1.0.17 lib/bearcat/client/reports.rb
bearcat-1.0.16 lib/bearcat/client/reports.rb
bearcat-1.0.15 lib/bearcat/client/reports.rb
bearcat-1.0.14 lib/bearcat/client/reports.rb
bearcat-1.0.13 lib/bearcat/client/reports.rb
bearcat-1.0.12 lib/bearcat/client/reports.rb
bearcat-1.0.11 lib/bearcat/client/reports.rb
bearcat-1.0.10 lib/bearcat/client/reports.rb