Class: Hyperlayer::Event

Inherits:
ApplicationRecord show all
Defined in:
app/models/hyperlayer/event.rb

Instance Method Summary collapse

Instance Method Details

#method_codeObject



24
25
26
# File 'app/models/hyperlayer/event.rb', line 24

def method_code
  FindMethodFromEvent.call(self)
end

#return_value_eventsObject



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

#specObject



20
21
22
# File 'app/models/hyperlayer/event.rb', line 20

def spec
  Hashie::Mash.new(self[:spec])
end