Skip to content

Commit

Permalink
product_rate_plan= method shouldn't be protected
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoline authored and Bram-- committed Dec 10, 2013
1 parent 6ef6b00 commit 6f37596
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/zuora/objects/subscribe_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f37596

Please sign in to comment.