Sha256: cd9d20cec8f9947dfdf37b09ce939f57e70bb918dddfee41c10f1096ecfff9f9
Contents?: true
Size: 748 Bytes
Versions: 45
Compression:
Stored size: 748 Bytes
Contents
# frozen_string_literal: true require "shopify_cli/thread_pool/job" module ShopifyCLI class PartnersAPI class AppExtensions class Job < ShopifyCLI::ThreadPool::Job attr_reader :result def initialize(ctx, app, type) super() @ctx = ctx @app = app @api_key = @app["apiKey"] @type = type end def perform! resp = PartnersAPI.query(@ctx, "get_extension_registrations", **params) @result = resp&.dig("data", "app") || {} end def patch_app_with_extensions! @app.merge!(result) end private def params { api_key: @api_key, type: @type } end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems