Class: Flipper::Adapters::ReadOnly

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/flipper/adapters/read_only.rb

Overview

Public: Adapter that wraps another adapter and raises for any writes.

Defined Under Namespace

Classes: WriteAttempted

Constant Summary collapse

WRITE_METHODS =
%i[add remove clear enable disable]

Constants inherited from Wrapper

Wrapper::METHODS

Instance Attribute Summary

Attributes inherited from Wrapper

#adapter

Instance Method Summary collapse

Methods inherited from Wrapper

#initialize

Methods included from Flipper::Adapter

#default_config, #export, #get_all, #get_multi, #import, included, #name

Constructor Details

This class inherits a constructor from Flipper::Adapters::Wrapper

Instance Method Details

#read_only?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/flipper/adapters/read_only.rb', line 15

def read_only?
  true
end