Sha256: d3afb56e944bd4e99b9d6d09ce01dedc42f731f3629e5e47ca874b651efc5307

Contents?: true

Size: 430 Bytes

Versions: 11

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

module ShopifyCLI
  module Theme
    class ThemeAdminAPIThrottler
      class ResponseParser
        def initialize(response_body)
          @response_body = response_body
        end

        def parse
          result = []
          @response_body["results"]&.each do |resp|
            result << [resp["code"], resp["body"]]
          end
          result
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shopify-cli-2.29.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.28.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.27.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.26.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.25.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.24.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.23.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.22.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.21.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.20.1 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb
shopify-cli-2.20.0 lib/shopify_cli/theme/theme_admin_api_throttler/response_parser.rb