module Restforce::Concerns::API
def version_guard(version)
Internal: Ensures that the `api_version` set for the Restforce client is at least
def version_guard(version) if version.to_f <= options[:api_version].to_f yield else raise APIVersionError, "You must set an `api_version` of at least #{version} " \ "to use this feature in the Salesforce API. Set the " \ "`api_version` option when configuring the client - " \ "see https://github.com/ejholmes/restforce/blob/master" \ "/README.md#api-versions" end end