Class: Raven::MessageInterface

Inherits:
Interface show all
Defined in:
lib/raven/interfaces/message.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Interface

inherited, registered, #to_hash

Constructor Details

#initialize(*arguments) ⇒ MessageInterface

Returns a new instance of MessageInterface.



7
8
9
10
# File 'lib/raven/interfaces/message.rb', line 7

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

Instance Attribute Details

#messageObject

Returns the value of attribute message.



5
6
7
# File 'lib/raven/interfaces/message.rb', line 5

def message
  @message
end

#paramsObject

Returns the value of attribute params.



5
6
7
# File 'lib/raven/interfaces/message.rb', line 5

def params
  @params
end

Class Method Details

.sentry_aliasObject



16
17
18
# File 'lib/raven/interfaces/message.rb', line 16

def self.sentry_alias
  :logentry
end

Instance Method Details

#unformatted_messageObject



12
13
14
# File 'lib/raven/interfaces/message.rb', line 12

def unformatted_message
  Array(params).empty? ? message : message % params
end