Skip to content

Commit

Permalink
adding method for backward compatibility of single product_rate_plan …
Browse files Browse the repository at this point in the history
…in subreq
  • Loading branch information
jmoline authored and Bram-- committed Dec 10, 2013
1 parent a46b0dc commit 6ef6b00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/zuora/objects/subscribe_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ef6b00

Please sign in to comment.