Class: Raven::Interface
- Inherits:
-
Object
- Object
- Raven::Interface
- Includes:
- BetterAttrAccessor
- Defined in:
- lib/raven/interfaces.rb
Direct Known Subclasses
ExceptionInterface, HttpInterface, MessageInterface, StacktraceInterface, StacktraceInterface::Frame
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = nil) {|_self| ... } ⇒ Interface
constructor
A new instance of Interface.
Methods included from BetterAttrAccessor
Constructor Details
#initialize(attributes = nil) {|_self| ... } ⇒ Interface
Returns a new instance of Interface.
11 12 13 14 15 16 17 |
# File 'lib/raven/interfaces.rb', line 11 def initialize(attributes = nil) attributes.each do |attr, value| send "#{attr}=", value end if attributes yield self if block_given? end |
Class Method Details
.name(value = nil) ⇒ Object
19 20 21 |
# File 'lib/raven/interfaces.rb', line 19 def self.name(value = nil) @interface_name ||= value end |