Class: SafetyPatrol::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/safety_patrol/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/safety_patrol/configuration.rb', line 7

def initialize
  
  @abilities = {
    #verb   #adjective
      :create => :creatable,
      :read   => :readable,
      :update => :updatable,
      :delete => :deletable
  }

end

Instance Attribute Details

#abilitiesObject

Returns the value of attribute abilities.



5
6
7
# File 'lib/safety_patrol/configuration.rb', line 5

def abilities
  @abilities
end