README.rdoc in binarylogic-shippinglogic-1.0.8 vs README.rdoc in binarylogic-shippinglogic-1.1.0
- old
+ new
@@ -146,19 +146,19 @@
Here is what I did in an application of mine and it worked out great. I also have complete control of what I'm doing and the library is not limiting me:
class Shipment < ActiveRecord::Base
class Service
- attr_accessor :carrier, :name, delivered_by, :rate
+ attr_accessor :carrier, :name, "delivered_by, :rate
end
def services
@services ||= fedex_services # + some_other_services
end
private
def fedex_services
- rate_options = {} # fill me with options accepted by Shippinglogic::FedEx::Rate
+ rate_options = {} # replace me with your own options accepted by Shippinglogic::FedEx::Rate
fedex.rate(rate_options).collect do |rate|
service = Service.new
service.carrier = :fedex
serivce.name = rate.name
service.rate = rate.rate
\ No newline at end of file