Sha256: b029a9f9cab0fed2d735aa40a40a9509b60b2c34e16c932ee01c48052be4853b

Contents?: true

Size: 313 Bytes

Versions: 8

Compression:

Stored size: 313 Bytes

Contents

# frozen_string_literal: true

module LastRequest
  def last_request
    @last_request
  end

  def last_request=(request_signature)
    @last_request = request_signature
  end
end

WebMock.extend(LastRequest)
WebMock.after_request do |request_signature, _response|
  WebMock.last_request = request_signature
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
ruby_shopify_api-1.2.0 test/lib/webmock_extensions/last_request.rb
ruby_shopify_api-1.1.0 test/lib/webmock_extensions/last_request.rb
ruby_shopify_api-1.0.0 test/lib/webmock_extensions/last_request.rb
shopify_api-9.5.1 test/lib/webmock_extensions/last_request.rb
shopify_api-9.5 test/lib/webmock_extensions/last_request.rb
shopify_api-9.4.1 test/lib/webmock_extensions/last_request.rb
shopify_api-9.4.0 test/lib/webmock_extensions/last_request.rb
shopify_api-9.3.0 test/lib/webmock_extensions/last_request.rb