class Paradeiser::Interrupt
Constants
- KNOWN_TYPES
Attributes
created_at[R]
type[R]
Public Class Methods
new(type = nil)
click to toggle source
# File lib/paradeiser/models/interrupt.rb, line 6 def initialize(type = nil) @type = type || :internal raise InvalidTypeError.new(@type, KNOWN_TYPES) unless KNOWN_TYPES.include?(@type) @created_at = Time.now end