#NEWLINE# def get_operations( self , rule , resource ) : #NEWLINE# #INDENT# return { method : getattr ( resource , method . lower ( ) ) for method in self . methods if hasattr ( resource , method . lower ( ) ) }