Sha256: d9cad121f5671f4ec0caa04e584018765eb4939d1a3384176de9aa6f397c4201

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

require '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.2 lib/papertrail_rails.rb