class Checkpoint::Resource::AllOfType
Specialized Resource
type to represent all entities of a particular type.
Attributes
type[R]
Public Class Methods
new(type)
click to toggle source
Create a wildcard Resource
for a given type
# File lib/checkpoint/resource/all_of_type.rb, line 9 def initialize(type) @type = type end
Public Instance Methods
eql?(other)
click to toggle source
Compares with another Resource
@return [Boolean] true if `other` is a Resource
and its type
matches.
# File lib/checkpoint/resource/all_of_type.rb, line 21 def eql?(other) other.is_a?(Resource) && type == other.type end
Also aliased as: ==
id()
click to toggle source
This is always the special ALL resource ID
# File lib/checkpoint/resource/all_of_type.rb, line 14 def id Resource::ALL end