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::BulkPolicy::Scope, 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
(also: #request)
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.
- #resolve ⇒ Object
Methods included from Helpers::Indices
#filter, #patterns, #patterns_for
Constructor Details
#initialize(user, scope) ⇒ Scope
Returns a new instance of Scope.
52 53 54 55 |
# File 'lib/proxes/policies/request_policy.rb', line 52 def initialize(user, scope) @user = user @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly) Also known as: request
Returns the value of attribute scope.
49 50 51 |
# File 'lib/proxes/policies/request_policy.rb', line 49 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
49 50 51 |
# File 'lib/proxes/policies/request_policy.rb', line 49 def user @user end |