Sha256: 07516d19d5ff44497a9ca9b18b2a41556796b80d1fcba16154c48fcac8f02ff2

Contents?: true

Size: 241 Bytes

Versions: 5

Compression:

Stored size: 241 Bytes

Contents

module Correios
  module SRO
    module Timeout
      DEFAULT_REQUEST_TIMEOUT = 5 #seconds
      attr_writer :request_timeout

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
correios-sro-xml-0.4.0 lib/correios/sro/timeout.rb
correios-sro-xml-0.3.1 lib/correios/sro/timeout.rb
correios-sro-xml-0.3.0 lib/correios/sro/timeout.rb
correios-sro-xml-0.2.1 lib/correios/sro/timeout.rb
correios-sro-xml-0.2.0 lib/correios/sro/timeout.rb