Class: LaunchDarkly::Impl::DataSource::StatusProvider
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::DataSource::StatusProvider
- Extended by:
- Forwardable
- Defined in:
- lib/ldclient-rb/impl/data_source.rb
Overview
Instance Method Summary collapse
-
#initialize(status_broadcaster, update_sink) ⇒ StatusProvider
constructor
A new instance of StatusProvider.
- #status ⇒ Object
Methods included from LaunchDarkly::Interfaces::DataSource::StatusProvider
#add_listener, #remove_listener
Constructor Details
#initialize(status_broadcaster, update_sink) ⇒ StatusProvider
Returns a new instance of StatusProvider.
16 17 18 19 20 21 |
# File 'lib/ldclient-rb/impl/data_source.rb', line 16 def initialize(status_broadcaster, update_sink) # @type [Broadcaster] @status_broadcaster = status_broadcaster # @type [UpdateSink] @data_source_update_sink = update_sink end |
Instance Method Details
#status ⇒ Object
23 24 25 |
# File 'lib/ldclient-rb/impl/data_source.rb', line 23 def status @data_source_update_sink.current_status end |