Sha256: 19095b5e777eabdca9b8bbabe7db25303b5ec0942faa11eac1ac60e28f594147
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
module Ratchetio class Configuration attr_accessor :access_token attr_accessor :environment attr_accessor :root attr_accessor :branch attr_accessor :framework attr_accessor :endpoint attr_accessor :exception_level_filters attr_accessor :person_method attr_accessor :person_id_method attr_accessor :person_username_method attr_accessor :person_email_method attr_accessor :logger DEFAULT_ENDPOINT = "https://submit.ratchet.io/api/1/item/" def initialize @endpoint = DEFAULT_ENDPOINT @framework = 'Plain' @exception_level_filters = { 'ActiveRecord::RecordNotFound' => 'warning', 'AbstractController::ActionNotFound' => 'warning', 'ActionController::RoutingError' => 'warning' } @person_method = "current_user" @person_id_method = "id" @person_username_method = "username" @person_email_method = "email" end # allow params to be read like a hash def [](option) send(option) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ratchetio-0.4.2 | lib/ratchetio/configuration.rb |
ratchetio-0.4.1 | lib/ratchetio/configuration.rb |
ratchetio-0.4.0 | lib/ratchetio/configuration.rb |