Exception: Parse::CLPScope::Denied

Inherits:
StandardError
  • Object
show all
Defined in:
lib/parse/clp_scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(class_name, operation, reason = nil) ⇒ Denied

Returns a new instance of Denied.



12
13
14
15
16
# File 'lib/parse/clp_scope.rb', line 12

def initialize(class_name, operation, reason = nil)
  @class_name = class_name
  @operation  = operation
  super(reason || "CLP denied: #{operation} on #{class_name}")
end

Instance Attribute Details

#class_nameObject (readonly)

Returns the value of attribute class_name.



10
11
12
# File 'lib/parse/clp_scope.rb', line 10

def class_name
  @class_name
end

#operationObject (readonly)

Returns the value of attribute operation.



10
11
12
# File 'lib/parse/clp_scope.rb', line 10

def operation
  @operation
end