class ActiveShipping::Correios

Constants

AVAILABLE_SERVICES
DEFAULT_SERVICES

Public Class Methods

available_services() click to toggle source
# File lib/active_shipping/carriers/correios.rb, line 16
def self.available_services
  AVAILABLE_SERVICES
end

Public Instance Methods

find_rates(origin, destination, packages, options = {}) click to toggle source
# File lib/active_shipping/carriers/correios.rb, line 7
def find_rates(origin, destination, packages, options = {})
  options = @options.merge(options)

  request = CorreiosRequest.new(origin, destination, packages, options)
  response = request.create_response(perform(request.urls))

  response
end

Protected Instance Methods

perform(urls) click to toggle source
# File lib/active_shipping/carriers/correios.rb, line 47
def perform(urls)
  urls.map { |url| ssl_get(url) }
end