Class: ShipEngine::Errors::ErrorCode
- Inherits:
-
Object
- Object
- ShipEngine::Errors::ErrorCode
- Defined in:
- lib/shipengine/errors/error_code.rb
Overview
This class has the ability to return a specific error code.
#/
Class Method Summary collapse
-
.get(key) ⇒ String
Error type.
Class Method Details
.get(key) ⇒ String
Returns error type.
13 14 15 |
# File 'lib/shipengine/errors/error_code.rb', line 13 def self.get(key) @codes[key.upcase.to_sym] end |