Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaw committed Feb 3, 2024
1 parent b9c13d6 commit 2aafe5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Shopify::DefaultVariant

[![CI](https://github.com/ScreenStaring/shopify-default_variant/actions/workflows/ci.yml/badge.svg)](https://github.com/ScreenStaring/shopify-default_variant/actions/workflows/ci.yml)

Determine if the given Shopify product only has a default variant, or if the given variant is the default variant.

Works with a variety of objects:
Expand All @@ -20,7 +22,7 @@ Where `object` can be a product or a variant in any of the aforementioned forms.
More examples:

```rb
require "shopify_api"
require "shopify_api" # Just an example, *not* a recommendation 😉

product = ShopifyAPI::Product.find(id: id)
Shopify::DefaultVariant.match?(product)
Expand Down

0 comments on commit 2aafe5a

Please sign in to comment.