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-2.7.4 lib/raven/interfaces/message.rb
sentry-raven-2.7.3 lib/raven/interfaces/message.rb
jones-gem-2.7.2 lib/raven/interfaces/message.rb
alec-gem-2.7.2 lib/raven/interfaces/message.rb
sentry-raven-2.7.2 lib/raven/interfaces/message.rb
sentry-raven-2.7.1 lib/raven/interfaces/message.rb
sentry-raven-2.6.3 lib/raven/interfaces/message.rb
sentry-raven-2.6.2 lib/raven/interfaces/message.rb
sentry-raven-2.6.1 lib/raven/interfaces/message.rb
sentry-raven-2.6.0 lib/raven/interfaces/message.rb
sentry-raven-2.5.3 lib/raven/interfaces/message.rb
sentry-raven-2.5.2 lib/raven/interfaces/message.rb
sentry-raven-2.5.1 lib/raven/interfaces/message.rb
sentry-raven-2.5.0 lib/raven/interfaces/message.rb
sentry-raven-2.4.0 lib/raven/interfaces/message.rb
sentry-raven-2.3.1 lib/raven/interfaces/message.rb