Class: ProxES::RequestPolicy::Scope
- Inherits:
-
Object
- Object
- ProxES::RequestPolicy::Scope
- Includes:
- Helpers::Indices
- Defined in:
- lib/proxes/policies/request_policy.rb
Direct Known Subclasses
ProxES::Request::CatPolicy::Scope, ProxES::Request::CreatePolicy::Scope, ProxES::Request::IndexPolicy::Scope, ProxES::Request::RootPolicy::Scope, ProxES::Request::SearchPolicy::Scope, ProxES::Request::SnapshotPolicy::Scope, ProxES::Request::StatsPolicy::Scope
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user, scope) ⇒ Scope
constructor
A new instance of Scope.
- #logger ⇒ Object
- #resolve ⇒ Object
Methods included from Helpers::Indices
Constructor Details
#initialize(user, scope) ⇒ Scope
Returns a new instance of Scope.
58 59 60 61 |
# File 'lib/proxes/policies/request_policy.rb', line 58 def initialize(user, scope) @user = user @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
56 57 58 |
# File 'lib/proxes/policies/request_policy.rb', line 56 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
56 57 58 |
# File 'lib/proxes/policies/request_policy.rb', line 56 def user @user end |
Instance Method Details
#logger ⇒ Object
63 64 65 |
# File 'lib/proxes/policies/request_policy.rb', line 63 def logger @logger ||= Ditty::Services::Logger.instance end |
#resolve ⇒ Object
67 68 69 |
# File 'lib/proxes/policies/request_policy.rb', line 67 def resolve scope end |