Class: Consumer::Controls::PositionStore::Example

Inherits:
Object
  • Object
show all
Includes:
PositionStore
Defined in:
lib/consumer/controls/position_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from PositionStore

included

Instance Attribute Details

#telemetry_sinkObject

Returns the value of attribute telemetry_sink.



13
14
15
# File 'lib/consumer/controls/position_store.rb', line 13

def telemetry_sink
  @telemetry_sink
end

Instance Method Details

#configureObject



15
16
17
18
19
# File 'lib/consumer/controls/position_store.rb', line 15

def configure
  self.telemetry_sink = ::Consumer::PositionStore::Telemetry::Sink.new

  telemetry.register telemetry_sink
end

#getObject



21
22
23
# File 'lib/consumer/controls/position_store.rb', line 21

def get
  Position::Global.example
end

#put(_) ⇒ Object



25
26
# File 'lib/consumer/controls/position_store.rb', line 25

def put(_)
end