Class: EasyPost::CarrierAccount

Inherits:
Resource show all
Defined in:
lib/easypost/carrier_account.rb

Instance Attribute Summary

Attributes inherited from EasyPostObject

#api_key, #name, #parent, #unsaved_values

Class Method Summary collapse

Methods inherited from Resource

all, class_name, create, #delete, #refresh, retrieve, #save, url, #url

Methods inherited from EasyPostObject

#[], #[]=, #as_json, construct_from, #each, #id, #id=, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from EasyPost::EasyPostObject

Class Method Details

.typesObject



3
4
5
6
# File 'lib/easypost/carrier_account.rb', line 3

def self.types
  response, api_key = EasyPost.request(:get, "/carrier_types", @api_key)
  return Util.convert_to_easypost_object(response, api_key)
end