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::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
Methods included from Helpers::Indices
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)
Returns the value of attribute scope.
50 51 52 |
# File 'lib/proxes/policies/request_policy.rb', line 50 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
50 51 52 |
# File 'lib/proxes/policies/request_policy.rb', line 50 def user @user end |
Instance Method Details
#logger ⇒ Object
57 58 59 |
# File 'lib/proxes/policies/request_policy.rb', line 57 def logger @logger ||= ProxES::Services::Logger.instance end |