Module: Walruz::Utils::PolicyCompositionHelper

Defined in:
lib/walruz/utils.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#paramsObject



65
66
67
# File 'lib/walruz/utils.rb', line 65

def params
  @params
end

#policiesObject



48
49
50
# File 'lib/walruz/utils.rb', line 48

def policies
  @policies
end

#policies=(policies) ⇒ Object

– NOTE: Not using cattr_accessor to avoid dependencies with ActiveSupport



44
45
46
# File 'lib/walruz/utils.rb', line 44

def policies=(policies)
  @policies = policies
end

#policyObject



56
57
58
# File 'lib/walruz/utils.rb', line 56

def policy
  @policy
end

#policy=(policy) ⇒ Object



52
53
54
# File 'lib/walruz/utils.rb', line 52

def policy=(policy)
  @policy = policy
end

#set_params(params = {}) ⇒ Object



60
61
62
63
# File 'lib/walruz/utils.rb', line 60

def set_params(params = {})
  @params ||= {}
  @params.merge!(params)
end