Sha256: fc28ff65fd4299b0e1e922c642c4205aa1d00217f092ade53ee939e5f2ea963a

Contents?: true

Size: 995 Bytes

Versions: 1

Compression:

Stored size: 995 Bytes

Contents

require 'json'
require 'rest-client'
require "xdelivery/version"
require "xdelivery/callback"
require "xdelivery/client"
require "xdelivery/api/base"
require "xdelivery/api/orders"
require "xdelivery/api/sales"
require "xdelivery/api/products"
require "xdelivery/api/ping"
require "xdelivery/api/shops"
require "xdelivery/api/response/base"
require "xdelivery/api/response/orders"
require "xdelivery/api/response/products"
require "xdelivery/api/response/ping"
require "xdelivery/api/response/shops"


module Xdelivery

  @@open_timeout = 5
  @@read_timeout = 5

  def self.open_timeout
    @@open_timeout
  end

  def self.open_timeout=(timeout)
    @@open_timeout = timeout
  end

  def self.read_timeout
    @@read_timeout
  end

  def self.read_timeout=(timeout)
    @@read_timeout = timeout
  end

  # Xdelivery.configure do |config|
  #   config.open_timeout = 5
  #   config.read_timeout = 5
  # end
  def self.configure
    yield(self)
  end

  def url
    API::Base::BASE_URL
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xdelivery-1.0.1 lib/xdelivery.rb