Sha256: d7101baf79dae3b7248832b874f82ea5426cf2488b7c96ef6489f04822cd4e9c

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

require 'ebay/config'

module Ebay
  # Allows running requests in the eBay Sandbox
  module Sandboxable
    # Runs requests in the eBay Sandbox
    #
    # @return [self]
    def sandbox
      @sandbox = true
      self
    end

    # @!attribute [r] sandbox?
    # Returns whether requests run in the eBay Sandbox
    #
    # @return [Boolean]
    def sandbox?
      @sandbox ||= false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ebay-ruby-0.3.0 lib/ebay/sandboxable.rb