Class: EasyPost::CarrierAccount

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

Overview

A CarrierAccount encapsulates your credentials with the carrier.

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, each, #refresh, retrieve, #save, url, #url

Methods inherited from EasyPostObject

#[], #[]=, #as_json, construct_from, #deconstruct_keys, #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

Retrieve a list of available CarrierAccount types for the authenticated User.



6
7
8
# File 'lib/easypost/carrier_account.rb', line 6

def self.types
  EasyPost::CarrierType.all
end