Permalink
Browse files

product_rate_plan= method shouldn't be protected

  • Loading branch information...
1 parent f2392a7 commit 4e66f55134371ad3918f0c666f9d525a113d1ef6 @jmoline committed Jul 2, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/zuora/objects/subscribe_request.rb
@@ -80,6 +80,12 @@ def create
apply_response(result.to_hash, :subscribe_response)
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
+
protected
def apply_response(response_hash, type)
@@ -148,12 +154,6 @@ 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 4e66f55

Please sign in to comment.