Class: LeapSalesforce::Limits
- Inherits:
-
Object
- Object
- LeapSalesforce::Limits
- Defined in:
- lib/leap_salesforce/limits.rb
Overview
Handles retrieving limits of a Salesforce instance
Class Method Summary collapse
-
.remaining_for(limit_name) ⇒ Integer
Finds remaining amount for a Salesforce limit.
Class Method Details
.remaining_for(limit_name) ⇒ Integer
Returns Finds remaining amount for a Salesforce limit.
9 10 11 |
# File 'lib/leap_salesforce/limits.rb', line 9 def remaining_for(limit_name) Salesforce.limits[limit_name]['Remaining'] end |