module ShopifyAPI::Countable

Public Instance Methods

count(options = {}) click to toggle source
# File lib/shopify_api/countable.rb, line 4
def count(options = {})
  data = get(:count, options)

  count = case data
  when Hash then data["count"]
  else data
  end

  Integer(count)
end