class Flipper::Cloud::DSL

Attributes

cloud_configuration[R]

Public Class Methods

new(cloud_configuration) click to toggle source
Calls superclass method
# 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

Public Instance Methods

inspect() click to toggle source
# 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() click to toggle source
# File lib/flipper/cloud/dsl.rb, line 13
def sync
  @cloud_configuration.sync
end
sync_secret() click to toggle source
# File lib/flipper/cloud/dsl.rb, line 17
def sync_secret
  @cloud_configuration.sync_secret
end