Class: Flipper::Cloud::DSL
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Flipper::Cloud::DSL
- Defined in:
- lib/flipper/cloud/dsl.rb
Instance Attribute Summary collapse
-
#cloud_configuration ⇒ Object
readonly
Returns the value of attribute cloud_configuration.
Instance Method Summary collapse
-
#initialize(cloud_configuration) ⇒ DSL
constructor
A new instance of DSL.
- #inspect ⇒ Object
- #sync ⇒ Object
- #sync_secret ⇒ Object
Constructor Details
#initialize(cloud_configuration) ⇒ DSL
Returns a new instance of DSL.
8 9 10 11 |
# File 'lib/flipper/cloud/dsl.rb', line 8 def initialize(cloud_configuration) @cloud_configuration = cloud_configuration super Flipper.new(@cloud_configuration.adapter, instrumenter: @cloud_configuration.instrumenter) end |
Instance Attribute Details
#cloud_configuration ⇒ Object (readonly)
Returns the value of attribute cloud_configuration.
6 7 8 |
# File 'lib/flipper/cloud/dsl.rb', line 6 def cloud_configuration @cloud_configuration end |
Instance Method Details
#inspect ⇒ Object
21 22 23 24 |
# File 'lib/flipper/cloud/dsl.rb', line 21 def inspect inspect_id = ::Kernel::format "%x", (object_id * 2) %(#<#{self.class}:0x#{inspect_id} @cloud_configuration=#{cloud_configuration.inspect}, flipper=#{__getobj__.inspect}>) end |
#sync ⇒ Object
13 14 15 |
# File 'lib/flipper/cloud/dsl.rb', line 13 def sync @cloud_configuration.sync end |
#sync_secret ⇒ Object
17 18 19 |
# File 'lib/flipper/cloud/dsl.rb', line 17 def sync_secret @cloud_configuration.sync_secret end |