Class: Zuora::SubscribeRequest
- Defined in:
- lib/active_zuora/subscribe_request.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ZObject
#==, all, attribute_names, #attributes, build_filter_statments, client, convert_date, destroy, #destroy, exclude_query_attributes, excluded_query_attributes, extra_attributes, find, #id, #initialize, klass_name, new_from_zobject, query_attribute_names, #to_zobject, #type, update_attributes, valid_id, valid_session?, where, #zobject_class, zobject_class
Constructor Details
This class inherits a constructor from Zuora::ZObject
Class Method Details
.create(args = {}) ⇒ Object
3 4 5 |
# File 'lib/active_zuora/subscribe_request.rb', line 3 def self.create(args={}) self.client.subscribe([self.new(args).to_zobject]) end |
Instance Method Details
#save ⇒ Object
7 8 9 10 11 |
# File 'lib/active_zuora/subscribe_request.rb', line 7 def save result = self.class.client.subscribe([self.to_zobject]) self.account.id = result.accountId result.success end |