Class: Feature::Gitaly::ActorWrapper
- Inherits:
-
Object
- Object
- Feature::Gitaly::ActorWrapper
- Defined in:
- lib/feature/gitaly.rb
Overview
Wrapper for feature flag actor to avoid unnecessarily SQL queries
Instance Method Summary collapse
- #flipper_id ⇒ Object
-
#initialize(klass, id) ⇒ ActorWrapper
constructor
A new instance of ActorWrapper.
Constructor Details
#initialize(klass, id) ⇒ ActorWrapper
Returns a new instance of ActorWrapper.
9 10 11 12 |
# File 'lib/feature/gitaly.rb', line 9 def initialize(klass, id) @klass = klass @id = id end |
Instance Method Details
#flipper_id ⇒ Object
14 15 16 |
# File 'lib/feature/gitaly.rb', line 14 def flipper_id "#{@klass.name}:#{@id}" end |