Class: InnerClientRepositoryCallback
- Inherits:
-
RepositoryCallback
- Object
- RepositoryCallback
- InnerClientRepositoryCallback
- Defined in:
- lib/ff/ruby/server/sdk/api/inner_client_repository_callback.rb
Instance Method Summary collapse
-
#initialize(logger = nil) ⇒ InnerClientRepositoryCallback
constructor
A new instance of InnerClientRepositoryCallback.
- #on_flag_deleted(identifier) ⇒ Object
- #on_flag_stored(identifier) ⇒ Object
- #on_segment_deleted(identifier) ⇒ Object
- #on_segment_stored(identifier) ⇒ Object
Constructor Details
#initialize(logger = nil) ⇒ InnerClientRepositoryCallback
Returns a new instance of InnerClientRepositoryCallback.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ff/ruby/server/sdk/api/inner_client_repository_callback.rb', line 6 def initialize(logger = nil) if logger != nil @logger = logger else @logger = Logger.new(STDOUT) end end |
Instance Method Details
#on_flag_deleted(identifier) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/ff/ruby/server/sdk/api/inner_client_repository_callback.rb', line 24 def on_flag_deleted(identifier) @logger.debug "On flag deleted: " + identifier # TODO: Notify consumers end |
#on_flag_stored(identifier) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/ff/ruby/server/sdk/api/inner_client_repository_callback.rb', line 17 def on_flag_stored(identifier) @logger.debug "On flag stored: " + identifier # TODO: Notify consumers end |
#on_segment_deleted(identifier) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/ff/ruby/server/sdk/api/inner_client_repository_callback.rb', line 38 def on_segment_deleted(identifier) @logger.debug "On segment deleted: " + identifier # TODO: Notify consumers end |
#on_segment_stored(identifier) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/ff/ruby/server/sdk/api/inner_client_repository_callback.rb', line 31 def on_segment_stored(identifier) @logger.debug "On segment stored: " + identifier # TODO: Notify consumers end |