Class: LaunchDarkly::Impl::DataSource::StatusProvider

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
LaunchDarkly::Interfaces::DataSource::StatusProvider
Defined in:
lib/ldclient-rb/impl/data_source.rb

Overview

Since:

  • 5.5.0

Instance Method Summary collapse

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.

Since:

  • 5.5.0



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

#statusObject

Since:

  • 5.5.0



23
24
25
# File 'lib/ldclient-rb/impl/data_source.rb', line 23

def status
  @data_source_update_sink.current_status
end