Class: ActivityPermissionEngine::UnregisterActivity

Inherits:
Object
  • Object
show all
Defined in:
lib/activity_permission_engine/unregister_activity.rb

Defined Under Namespace

Classes: Request, Response

Instance Method Summary collapse

Constructor Details

#initialize(request, activities_registry = ActivityPermissionEngine.configuration.activity_permissions_registry) ⇒ UnregisterActivity

Returns a new instance of UnregisterActivity.



3
4
5
6
# File 'lib/activity_permission_engine/unregister_activity.rb', line 3

def initialize(request, activities_registry = ActivityPermissionEngine.configuration.activity_permissions_registry)
  @request = request
  @activities_registry = activities_registry
end

Instance Method Details

#callObject



8
9
10
# File 'lib/activity_permission_engine/unregister_activity.rb', line 8

def call
  Response.new(activities_registry.del(request.activity_ref))
end