Permalink
Browse files

adding method for backward compatibility of single product_rate_plan …

…in subreq
  • Loading branch information...
1 parent a9a6e32 commit f2392a74f5bec8eedc660ad2487263788a02d972 @jmoline committed Jun 18, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/zuora/objects/subscribe_request.rb
@@ -148,6 +148,12 @@ def generate_subscribe_options(builder)
end
end
+ # method to support backward compatibility of a single
+ # product_rate_plan
+ def product_rate_plan=(rate_plan_object)
+ self.product_rate_plans = [rate_plan_object]
+ end
+
# TODO: Restructute an intermediate class that includes
# persistence only within ZObject models.
# These methods are not relevant, but defined in Base

0 comments on commit f2392a7

Please sign in to comment.