Class: Checkpoint::Resource::AllOfAnyType
- Inherits:
-
Checkpoint::Resource
- Object
- Checkpoint::Resource
- Checkpoint::Resource::AllOfAnyType
- Defined in:
- lib/checkpoint/resource/all_of_any_type.rb
Overview
Specialized Resource type to represent all entities of a any/all types. This is used for zone-/system-wide grants or checks.
Constant Summary
Constants inherited from Checkpoint::Resource
Instance Attribute Summary
Attributes inherited from Checkpoint::Resource
Class Method Summary collapse
-
.from(_entity) ⇒ AllOfAnyType
Create a wildcard Resource “from” an entity.
Instance Method Summary collapse
-
#id ⇒ Object
The special ALL id.
-
#initialize ⇒ AllOfAnyType
constructor
Create a wildcard Resource.
-
#type ⇒ Object
The special ALL type.
Methods inherited from Checkpoint::Resource
#==, all, #all_of_type, #eql?, #token
Constructor Details
#initialize ⇒ AllOfAnyType
Create a wildcard Resource.
Because type and ID are static, this takes no parameters
11 12 13 |
# File 'lib/checkpoint/resource/all_of_any_type.rb', line 11 def initialize @entity = AnyEntity.new end |
Class Method Details
.from(_entity) ⇒ AllOfAnyType
Create a wildcard Resource “from” an entity. The entity disregarded and Checkpoint::Resource::AnyEntity is substituted.
19 20 21 |
# File 'lib/checkpoint/resource/all_of_any_type.rb', line 19 def self.from(_entity) new end |