Sha256: 52bbe4ef1f52b962eb468d6613c92350cd56938372153a0908ee83808d4cd62e

Contents?: true

Size: 341 Bytes

Versions: 7

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

class EasyPost::Services::CarrierType < EasyPost::Services::Service
  MODEL_CLASS = EasyPost::Models::CarrierType

  # Retrieve all carrier types
  def all
    response = @client.make_request(:get, 'carrier_types')

    EasyPost::InternalUtilities::Json.convert_json_to_object(response, MODEL_CLASS)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
easypost-6.4.1 lib/easypost/services/carrier_type.rb
easypost-6.4.0 lib/easypost/services/carrier_type.rb
easypost-6.3.0 lib/easypost/services/carrier_type.rb
easypost-6.2.0 lib/easypost/services/carrier_type.rb
easypost-6.1.1 lib/easypost/services/carrier_type.rb
easypost-6.1.0 lib/easypost/services/carrier_type.rb
easypost-6.0.0 lib/easypost/services/carrier_type.rb