Class: Peck::Event

Inherits:
Object show all
Defined in:
lib/peck/specification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception, spec) ⇒ Event

Returns a new instance of Event.



22
23
24
25
# File 'lib/peck/specification.rb', line 22

def initialize(exception, spec)
  @exception = exception
  @spec = spec
end

Instance Attribute Details

#exceptionObject

Returns the value of attribute exception.



20
21
22
# File 'lib/peck/specification.rb', line 20

def exception
  @exception
end

#specObject

Returns the value of attribute spec.



20
21
22
# File 'lib/peck/specification.rb', line 20

def spec
  @spec
end