Sha256: f1b023b2cbc2aafd23c690e6ecde120d8c7aedd708d2d943fba7037fff725cd7

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

# require 'papertrail_rails/request'
require_relative 'papertrail_rails/request'
module PapertrailRails
  @api_key = nil

  def self.api_key=(api_key)
    @api_key = api_key
    PapertrailRails::Request.set_default_headers(api_key)
  end

  def self.api_key
    @api_key
  end

  def self.search_status(query)
    PapertrailRails::Request.get("/events/search.json?q=status=", query)
  end

  def search(query)
    PapertrailRails::Request.get('/events/search.json?q=', query)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
papertrail_rails-0.0.1 lib/papertrail_rails.rb