Class: Consumer::Controls::PositionStore::Example
- Inherits:
-
Object
- Object
- Consumer::Controls::PositionStore::Example
- Includes:
- PositionStore
- Defined in:
- lib/consumer/controls/position_store.rb
Instance Attribute Summary collapse
-
#telemetry_sink ⇒ Object
Returns the value of attribute telemetry_sink.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from PositionStore
Instance Attribute Details
#telemetry_sink ⇒ Object
Returns the value of attribute telemetry_sink.
11 12 13 |
# File 'lib/consumer/controls/position_store.rb', line 11 def telemetry_sink @telemetry_sink end |
Class Method Details
.build ⇒ Object
17 18 19 20 21 |
# File 'lib/consumer/controls/position_store.rb', line 17 def self.build instance = new instance.configure instance end |
Instance Method Details
#configure ⇒ Object
23 24 25 26 27 |
# File 'lib/consumer/controls/position_store.rb', line 23 def configure self.telemetry_sink = ::Consumer::PositionStore::Telemetry::Sink.new telemetry.register(telemetry_sink) end |
#get ⇒ Object
29 30 31 |
# File 'lib/consumer/controls/position_store.rb', line 29 def get Position::Global.example end |
#put(_) ⇒ Object
33 34 |
# File 'lib/consumer/controls/position_store.rb', line 33 def put(_) end |
#stream_name ⇒ Object
13 14 15 |
# File 'lib/consumer/controls/position_store.rb', line 13 def stream_name 'somePositionStream' end |