module Ingress::PermissionsRepository::Hashes

creates hashes with the default values required in PermissionsRepository's constructor

Public Instance Methods

role_rules() click to toggle source

One level deep hash returning an array

# File lib/ingress/permissions_repository.rb, line 80
def role_rules
  Hash.new { |hash, key| hash[key] = [] }
end
role_subject_action_rule() click to toggle source

Three level deep hash returning an array

# File lib/ingress/permissions_repository.rb, line 69
def role_subject_action_rule
  Hash.new do |hash1, key1|
    hash1[key1] = Hash.new do |hash2, key2|
      hash2[key2] = Hash.new do |hash3, key3|
        hash3[key3] = []
      end
    end
  end
end