Sha256: 83486c3729ba1594d634c20fe5ab0714fb87d2bc081686ea24314a11b1d9afea

Contents?: true

Size: 280 Bytes

Versions: 21

Compression:

Stored size: 280 Bytes

Contents

module Zuora
  class Subscription < ZObject

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

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

    def unload_rate_plans
      @rate_plans = nil
    end

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
active_zuora-1.5.2 lib/active_zuora/subscription.rb
active_zuora-1.5.1 lib/active_zuora/subscription.rb
active_zuora-1.5.0 lib/active_zuora/subscription.rb
active_zuora-1.4.21 lib/active_zuora/subscription.rb
active_zuora-1.4.20 lib/active_zuora/subscription.rb
active_zuora-1.4.19 lib/active_zuora/subscription.rb
active_zuora-1.4.18 lib/active_zuora/subscription.rb
active_zuora-1.4.17 lib/active_zuora/subscription.rb
active_zuora-1.4.16 lib/active_zuora/subscription.rb
active_zuora-1.4.15 lib/active_zuora/subscription.rb
active_zuora-1.4.13 lib/active_zuora/subscription.rb
active_zuora-1.4.12 lib/active_zuora/subscription.rb
active_zuora-1.4.11 lib/active_zuora/subscription.rb
active_zuora-1.4.8 lib/active_zuora/subscription.rb
active_zuora-1.4.7 lib/active_zuora/subscription.rb
active_zuora-1.4.6 lib/active_zuora/subscription.rb
active_zuora-1.4.5 lib/active_zuora/subscription.rb
active_zuora-1.4.4 lib/active_zuora/subscription.rb
active_zuora-1.4.2 lib/active_zuora/subscription.rb
active_zuora-1.4.1 lib/active_zuora/subscription.rb