class ShiprocketAPI::CourierServiceability

Public Class Methods

find_every(options) click to toggle source
# File lib/shiprocket_api/resources/courier_serviceability.rb, line 26
def self.find_every(options)
  instantiate_collection(format.decode(connection.get(collection_path, headers, body: options[:params]).body) || [], options[:params])
rescue ActiveResource::ResourceNotFound
  # Swallowing ResourceNotFound exceptions and return nil - as per
  # ActiveRecord.
  nil
end