Class: Hyperlayer::Event
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Hyperlayer::Event
- Defined in:
- app/models/hyperlayer/event.rb
Instance Method Summary collapse
Instance Method Details
#method_code ⇒ Object
24 25 26 |
# File 'app/models/hyperlayer/event.rb', line 24 def method_code FindMethodFromEvent.call(self) end |
#return_value_events ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'app/models/hyperlayer/event.rb', line 9 def return_value_events Event.where( 'id > ?', id ).find_by( event_type: 'return', defined_class: defined_class, method: method, example_group: example_group ) end |
#spec ⇒ Object
20 21 22 |
# File 'app/models/hyperlayer/event.rb', line 20 def spec Hashie::Mash.new(self[:spec]) end |