Class: ShopifyGraphql::CurrentShop
- Inherits:
-
Object
- Object
- ShopifyGraphql::CurrentShop
- Includes:
- Query
- Defined in:
- app/graphql/shopify_graphql/current_shop.rb
Constant Summary collapse
- QUERY =
"query {\n shop {\n id\n name\n email\n contactEmail\n myshopifyDomain\n primaryDomain {\n host\n }\n #CREATED_AT#\n #UPDATED_AT#\n #SHOP_OWNER_NAME#\n currencyCode\n billingAddress {\n country\n countryCodeV2\n province\n city\n address1\n address2\n zip\n latitude\n longitude\n phone\n }\n timezoneAbbreviation\n ianaTimezone\n plan {\n displayName\n }\n currencyFormats {\n moneyFormat\n moneyInEmailsFormat\n moneyWithCurrencyFormat\n moneyWithCurrencyInEmailsFormat\n }\n weightUnit\n taxShipping\n taxesIncluded\n setupRequired\n checkoutApiSupported\n transactionalSmsDisabled\n enabledPresentmentCurrencies\n #SMS_CONSENT#\n }\n #LOCALES_SUBQUERY#\n}\n"- LOCALES_SUBQUERY =
"shopLocales {\n locale\n primary\n}\n"
Instance Method Summary collapse
Methods included from Query
Instance Method Details
#call(with_locales: false) ⇒ Object
62 63 64 65 66 |
# File 'app/graphql/shopify_graphql/current_shop.rb', line 62 def call(with_locales: false) query = prepare_query(QUERY, with_locales: with_locales) response = execute(query) parse_data(response.data, with_locales: with_locales) end |