Sha256: 409fd74fa02ba63100b85f35ecfd913034b2a5f19c9d9ea7c25b6f5108d31e25

Contents?: true

Size: 414 Bytes

Versions: 25

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

module LeapSalesforce
  # Handles retrieving limits of a Salesforce instance
  class Limits
    class << self
      # @param [Symbol, String] limit_name Name of limit to find remaining amount for
      # @return [Integer] Finds remaining amount for a Salesforce limit
      def remaining_for(limit_name)
        Salesforce.limits[limit_name]['Remaining']
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
leap_salesforce-1.5.0 lib/leap_salesforce/limits.rb
leap_salesforce-1.4.4 lib/leap_salesforce/limits.rb
leap_salesforce-1.4.3 lib/leap_salesforce/limits.rb
leap_salesforce-1.4.2 lib/leap_salesforce/limits.rb
leap_salesforce-1.4.1 lib/leap_salesforce/limits.rb
leap_salesforce-1.4.0 lib/leap_salesforce/limits.rb
leap_salesforce-1.3.1 lib/leap_salesforce/limits.rb
leap_salesforce-1.3.0 lib/leap_salesforce/limits.rb
leap_salesforce-1.2.2 lib/leap_salesforce/limits.rb
leap_salesforce-1.2.1 lib/leap_salesforce/limits.rb
leap_salesforce-1.2.0 lib/leap_salesforce/limits.rb
leap_salesforce-1.1.2 lib/leap_salesforce/limits.rb
leap_salesforce-1.1.1 lib/leap_salesforce/limits.rb
leap_salesforce-1.1.0 lib/leap_salesforce/limits.rb
leap_salesforce-1.0.5 lib/leap_salesforce/limits.rb
leap_salesforce-1.0.4 lib/leap_salesforce/limits.rb
leap_salesforce-1.0.3 lib/leap_salesforce/limits.rb
leap_salesforce-1.0.2 lib/leap_salesforce/limits.rb
leap_salesforce-1.0.1 lib/leap_salesforce/limits.rb
leap_salesforce-1.0.0 lib/leap_salesforce/limits.rb