Sha256: bad0a427f1b73ee8072b7bef7aa8dec574f8c3279ee34d0d3de01c22f9e36a57

Contents?: true

Size: 412 Bytes

Versions: 38

Compression:

Stored size: 412 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)
        SoqlData.limits[limit_name]['Remaining']
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
leap_salesforce-0.2.21 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.20 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.19 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.18 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.17 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.16 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.15 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.14 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.13 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.12 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.11 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.10 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.9 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.8 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.7 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.6 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.5 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.4 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.3 lib/leap_salesforce/limits.rb
leap_salesforce-0.2.2 lib/leap_salesforce/limits.rb