lib/shippinglogic/fedex.rb in binarylogic-shippinglogic-0.9.0 vs lib/shippinglogic/fedex.rb in binarylogic-shippinglogic-1.0.0
- old
+ new
@@ -1,8 +1,11 @@
require "shippinglogic/fedex/error"
require "shippinglogic/fedex/service"
-require "shippinglogic/fedex/rates"
+require "shippinglogic/fedex/cancel"
+require "shippinglogic/fedex/rate"
+require "shippinglogic/fedex/ship"
+require "shippinglogic/fedex/signature"
require "shippinglogic/fedex/track"
module Shippinglogic
class FedEx
# A hash representing default the options. If you are using this in a Rails app the best place
@@ -51,11 +54,23 @@
self.account = account
self.meter = meter
self.options = self.class.options.merge(options)
end
- def rates(attributes = {})
- @rates ||= Rates.new(self, attributes)
+ def cancel(attributes = {})
+ @cancel ||= Cancel.new(self, attributes)
+ end
+
+ def rate(attributes = {})
+ @rate ||= Rate.new(self, attributes)
+ end
+
+ def ship(attributes = {})
+ @ship ||= Ship.new(self, attributes)
+ end
+
+ def signature(attributes = {})
+ @signature ||= Signature.new(self, attributes)
end
def track(attributes = {})
@track ||= Track.new(self, attributes)
end
\ No newline at end of file