Skip to content

Instantly share code, notes, and snippets.

@vincentwoo
Created January 19, 2013 04:19
Show Gist options
  • Save vincentwoo/4570719 to your computer and use it in GitHub Desktop.
Save vincentwoo/4570719 to your computer and use it in GitHub Desktop.
class AtLastClient
class APIError < StandardError
attr_accessor :atlast_error_type
def initialize error
self.atlast_error_type = error
super("error: #{error}")
end
end
class ShippingMethod
USPS_PRI = 'POM1M'
USPS_EXP = 'POMEX'
USPS_1ST = 'POM1C'
UPS_1D = 'UPS1D'
UPS_2D = 'UPS2D'
UPS_3D = 'UPS3D'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment