Class: Zuora::Subscription
- Inherits:
-
ZObject
- Object
- SimpleDelegator
- ZObject
- Zuora::Subscription
show all
- Defined in:
- lib/active_zuora/subscription.rb
Instance Method Summary
collapse
Methods inherited from ZObject
#==, all, attribute_names, #attributes, build_filter_statments, client, convert_date, create, 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
Instance Method Details
#account ⇒ Object
4
5
6
|
# File 'lib/active_zuora/subscription.rb', line 4
def account
@account ||= Account.find(self.accountId)
end
|
#rate_plans ⇒ Object
8
9
10
|
# File 'lib/active_zuora/subscription.rb', line 8
def rate_plans
@rate_plans ||= RatePlan.where(:subscriptionId => self.id)
end
|
#unload_rate_plans ⇒ Object
12
13
14
|
# File 'lib/active_zuora/subscription.rb', line 12
def unload_rate_plans
@rate_plans = nil
end
|