Class: EasyPost::Services::CarrierType

Inherits:
Service
  • Object
show all
Defined in:
lib/easypost/services/carrier_type.rb

Constant Summary collapse

MODEL_CLASS =
EasyPost::Models::CarrierType

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from EasyPost::Services::Service

Instance Method Details

#allObject

Retrieve all carrier types



7
8
9
10
11
# File 'lib/easypost/services/carrier_type.rb', line 7

def all
  response = @client.make_request(:get, 'carrier_types')

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