Class: ROM::LDAP::Schema::Inferrer Private
- Inherits:
-
Schema::Inferrer
- Object
- Schema::Inferrer
- ROM::LDAP::Schema::Inferrer
- Defined in:
- lib/rom/ldap/schema/inferrer.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- FALLBACK_SCHEMA =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
{ attributes: EMPTY_ARRAY, indexes: EMPTY_SET }.freeze
Instance Method Summary collapse
- #call(schema, gateway) ⇒ Object private
- #suppress_errors ⇒ Object private
Instance Method Details
#call(schema, gateway) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 35 36 37 38 39 40 |
# File 'lib/rom/ldap/schema/inferrer.rb', line 32 def call(schema, gateway) inferred = super { **inferred } rescue *CONNECTION_FAILURES => e raise ConnectionError, e ensure FALLBACK_SCHEMA end |
#suppress_errors ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
42 43 44 |
# File 'lib/rom/ldap/schema/inferrer.rb', line 42 def suppress_errors with(raise_on_error: false, silent: true) end |