Sha256: c574bde647ed071fd375e36108cf23574704fa6de69fd785e8cdbed8b3b36ad1

Contents?: true

Size: 876 Bytes

Versions: 1

Compression:

Stored size: 876 Bytes

Contents

# encoding: UTF-8
require 'rubygems'
require 'log-me'
require 'net/https'
require 'json'
require 'uri'
require "rastreioz/version"
require "rastreioz/log"
require "rastreioz/http"
require "rastreioz/auth"
require "rastreioz/servico"
require "rastreioz/rastreamento"
require "rastreioz/frete"
require "rastreioz/cep"

module Rastreioz
  extend LogMe

  module Timeout
    DEFAULT_REQUEST_TIMEOUT = 10 #seconds
    attr_writer :request_timeout

    def request_timeout
      (@request_timeout ||= DEFAULT_REQUEST_TIMEOUT).to_i
    end
  end

  extend Timeout

  class << self

    def default_url
      "https://api.rastreioz.com"
    end

    def api_key=(api_key)
      @api_key = api_key
    end
    def api_key
      @api_key
    end

    def api_password=(api_password)
      @api_password = api_password
    end
    def api_password
      @api_password
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rastreioz-0.1.7 lib/rastreioz.rb