lib/finapps/rest/alert_occurrences.rb in finapps-5.0.32 vs lib/finapps/rest/alert_occurrences.rb in finapps-5.0.33
- old
+ new
@@ -6,10 +6,10 @@
include FinApps::Utils::QueryBuilder
END_POINT = 'portfolio/alerts/occurrences'
def list(params = nil)
return super END_POINT if params.nil?
- raise FinAppsCore::InvalidArgumentsError, 'Invalid argument: params' unless params.is_a? Hash
+ fail FinAppsCore::InvalidArgumentsError, 'Invalid argument: params' unless params.is_a? Hash
super build_query_path(END_POINT, params)
end
private