Class: Checkpoint::Resource::AllOfAnyType

Inherits:
Checkpoint::Resource show all
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

ALL

Instance Attribute Summary

Attributes inherited from Checkpoint::Resource

#entity

Instance Method Summary collapse

Methods inherited from Checkpoint::Resource

#==, all, #all?, #all_of_type, #all_of_type?, #eql?, #to_resource, #token

Constructor Details

#initializeAllOfAnyType

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

Instance Method Details

#idObject

The special ALL id



21
22
23
# File 'lib/checkpoint/resource/all_of_any_type.rb', line 21

def id
  Resource::ALL
end

#typeObject

The special ALL type



16
17
18
# File 'lib/checkpoint/resource/all_of_any_type.rb', line 16

def type
  Resource::ALL
end