Class: Zuora::Subscription

Inherits:
ZObject
  • Object
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

#accountObject



4
5
6
# File 'lib/active_zuora/subscription.rb', line 4

def 
  @account ||= Account.find(self.accountId)
end

#rate_plansObject



8
9
10
# File 'lib/active_zuora/subscription.rb', line 8

def rate_plans
  @rate_plans ||= RatePlan.where(:subscriptionId => self.id)
end

#unload_rate_plansObject



12
13
14
# File 'lib/active_zuora/subscription.rb', line 12

def unload_rate_plans
  @rate_plans = nil
end