class Coppertone::Mechanism::All

Implements the All mechanism. To reduce unnecessary object creation, this class is a singleton since all All mechanisms behave identically.

Constants

SINGLETON

Public Class Methods

create(attributes) click to toggle source
# File lib/coppertone/mechanism/all.rb, line 6
def self.create(attributes)
  raise InvalidMechanismError unless attributes.blank?

  SINGLETON
end
instance() click to toggle source
# File lib/coppertone/mechanism/all.rb, line 12
def self.instance
  SINGLETON
end
label() click to toggle source
# File lib/coppertone/mechanism/all.rb, line 16
def self.label
  'all'
end

Private Class Methods

new() click to toggle source
Calls superclass method Coppertone::Mechanism::new
# File lib/coppertone/mechanism/all.rb, line 20
def initialize
  super('')
end
new(arguments) click to toggle source
# File lib/coppertone/mechanism.rb, line 31
def initialize(arguments)
  @arguments = arguments
end

Public Instance Methods

match?(_macro_context, _request_context) click to toggle source
# File lib/coppertone/mechanism/all.rb, line 26
def match?(_macro_context, _request_context)
  true
end