Class: Oso::Polar::QueryEvent
- Inherits:
-
Object
- Object
- Oso::Polar::QueryEvent
- Defined in:
- lib/oso/polar/query_event.rb
Overview
A query event received across the FFI boundary.
Instance Attribute Summary collapse
- #data ⇒ Hash<String, Object> readonly
- #kind ⇒ String readonly
Instance Method Summary collapse
-
#initialize(event_data) ⇒ QueryEvent
constructor
A new instance of QueryEvent.
Constructor Details
#initialize(event_data) ⇒ QueryEvent #initialize(event_data) ⇒ QueryEvent
Returns a new instance of QueryEvent.
16 17 18 19 |
# File 'lib/oso/polar/query_event.rb', line 16 def initialize(event_data) event_data = { event_data => nil } if event_data == 'Done' @kind, @data = event_data.first end |
Instance Attribute Details
#data ⇒ Hash<String, Object> (readonly)
10 11 12 |
# File 'lib/oso/polar/query_event.rb', line 10 def data @data end |
#kind ⇒ String (readonly)
8 9 10 |
# File 'lib/oso/polar/query_event.rb', line 8 def kind @kind end |