Class: Recurso::BasePolicy

Inherits:
Struct
  • Object
show all
Defined in:
lib/recurso/policies/base_policy.rb

Direct Known Subclasses

NilClassPolicy, ResourcePolicy

Instance Attribute Summary collapse

Instance Attribute Details

#identityObject

Returns the value of attribute identity

Returns:

  • (Object)

    the current value of identity



2
3
4
# File 'lib/recurso/policies/base_policy.rb', line 2

def identity
  @identity
end

#resourceObject

Returns the value of attribute resource

Returns:

  • (Object)

    the current value of resource



2
3
4
# File 'lib/recurso/policies/base_policy.rb', line 2

def resource
  @resource
end