Method: Moip::Subscription#update_plan
- Defined in:
- lib/moip/models/subscription.rb
#update_plan(new_plan) ⇒ Object
105 106 107 108 109 110 |
# File 'lib/moip/models/subscription.rb', line 105 def update_plan new_plan hash = {} hash[:plan] = { :code => new_plan } self.class.put(base_url(:subscriptions, :code => self.code), default_header(hash.to_json)).parsed_response end |