Sha256: c993e0bef23c5567870121db9df89820c22be585a5b4b8aef06dd194aa05d24f

Contents?: true

Size: 518 Bytes

Versions: 5

Compression:

Stored size: 518 Bytes

Contents

module Base
  module Apis
    class DeliveryCompany
      attr_reader :client_secret

      def initialize(client_secret)
        @client_secret = client_secret
      end

      def request
        uri     = URI.join(API_HOST.to_s, "/#{API_VERSION}/delivery_companies?")
        request = Net::HTTP::Get.new(uri, client_secret.header_parameter)

        Net::HTTP.start(
          uri.hostname,
          uri.port,
          use_ssl: uri.scheme == 'https') { |http| http.request(request) }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
base-api-client-0.2.4.beta lib/base/apis/delivery_company.rb
base-api-client-0.2.3.beta lib/base/apis/delivery_company.rb
base-api-client-0.2.2.beta lib/base/apis/delivery_company.rb
base-api-client-0.2.1.beta lib/base/apis/delivery_company.rb
base-api-client-0.1.beta lib/base/apis/delivery_company.rb