Class: Casbin::Persist::FilteredAdapter

Inherits:
Adapter
  • Object
show all
Defined in:
lib/casbin-ruby/persist/filtered_adapter.rb

Overview

FilteredAdapter is the interface for Casbin adapters supporting filtered policies.

Instance Method Summary collapse

Methods inherited from Adapter

#add_policy, #load_policy, #remove_filtered_policy, #remove_policy, #save_policy

Instance Method Details

#filtered?Boolean

IsFiltered returns true if the loaded policy has been filtered Marks if the loaded policy is filtered or not

Returns:

  • (Boolean)


11
# File 'lib/casbin-ruby/persist/filtered_adapter.rb', line 11

def filtered?; end

#load_filtered_policy(_model, _filter) ⇒ Object

Loads policy rules that match the filter from the storage.



14
# File 'lib/casbin-ruby/persist/filtered_adapter.rb', line 14

def load_filtered_policy(_model, _filter); end