Sha256: 13c1d5fac8e12fb8eb90a896b4cd29f7cb0fe88146a424e43c36f4bcd5e46e92

Contents?: true

Size: 345 Bytes

Versions: 6

Compression:

Stored size: 345 Bytes

Contents

require 'raven/interface'

module Raven
  class MessageInterface < Interface
    attr_accessor :message, :params

    def initialize(*arguments)
      self.params = []
      super(*arguments)
    end

    def unformatted_message
      params.nil? ? message : message % params
    end

    def self.sentry_alias
      :logentry
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sentry-raven-2.3.0 lib/raven/interfaces/message.rb
sentry-raven-2.2.0 lib/raven/interfaces/message.rb
sentry-raven-2.1.4 lib/raven/interfaces/message.rb
sentry-raven-2.1.3 lib/raven/interfaces/message.rb
sentry-raven-2.1.2 lib/raven/interfaces/message.rb
sentry-raven-2.1.1 lib/raven/interfaces/message.rb