Sha256: 0c2f674bab9d873def7b58693a9f9cfed4adb0075d51f0afdf4c3ef72e13f9f9

Contents?: true

Size: 354 Bytes

Versions: 36

Compression:

Stored size: 354 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
      Array(params).empty? ? message : message % params
    end

    def self.sentry_alias
      :logentry
    end
  end
end

Version data entries

36 entries across 36 versions & 3 rubygems

Version Path
sentry-raven-3.1.2 lib/raven/interfaces/message.rb
sentry-raven-3.1.1 lib/raven/interfaces/message.rb
sentry-raven-3.1.0 lib/raven/interfaces/message.rb
sentry-raven-3.0.4 lib/raven/interfaces/message.rb
sentry-raven-3.0.3 lib/raven/interfaces/message.rb
sentry-raven-3.0.2 lib/raven/interfaces/message.rb
sentry-raven-3.0.1 lib/raven/interfaces/message.rb
sentry-raven-3.0.0 lib/raven/interfaces/message.rb
sentry-raven-2.13.0 lib/raven/interfaces/message.rb
sentry-raven-2.12.3 lib/raven/interfaces/message.rb
sentry-raven-2.12.2 lib/raven/interfaces/message.rb
sentry-raven-2.12.1 lib/raven/interfaces/message.rb
sentry-raven-2.12.0 lib/raven/interfaces/message.rb
sentry-raven-2.11.3 lib/raven/interfaces/message.rb
sentry-raven-2.11.2 lib/raven/interfaces/message.rb
sentry-raven-2.11.1 lib/raven/interfaces/message.rb
sentry-raven-2.11.0 lib/raven/interfaces/message.rb
sentry-raven-2.10.0 lib/raven/interfaces/message.rb
sentry-raven-2.9.0 lib/raven/interfaces/message.rb
sentry-raven-2.8.0 lib/raven/interfaces/message.rb