Class: Sipity::Runners::SipRunners::Index

Inherits:
BaseRunner
  • Object
show all
Defined in:
app/runners/sipity/runners/sip_runners.rb

Overview

Responsible for providing an index of Sips

Instance Attribute Summary

Attributes inherited from BaseRunner

#authentication_layer, #authorization_layer

Instance Method Summary collapse

Methods inherited from BaseRunner

#authentication_layer_that_authenticates_anything, #authentication_layer_that_uses_context_authentication, #authorization_layer_that_authorizes_everything, #authorization_layer_with_enforcement, #enforce_authentication!, #initialize

Constructor Details

This class inherits a constructor from Sipity::Runners::BaseRunner

Instance Method Details

#runObject



53
54
55
56
# File 'app/runners/sipity/runners/sip_runners.rb', line 53

def run
  sips = repository.find_sips_for(user: current_user)
  callback(:success, sips)
end