Method: AdvancedBilling::SubscriptionPreview#initialize
- Defined in:
- lib/advanced_billing/models/subscription_preview.rb
#initialize(current_billing_manifest: SKIP, next_billing_manifest: SKIP, additional_properties: {}) ⇒ SubscriptionPreview
Returns a new instance of SubscriptionPreview.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/advanced_billing/models/subscription_preview.rb', line 41 def initialize(current_billing_manifest: SKIP, next_billing_manifest: SKIP, additional_properties: {}) # Add additional model properties to the instance. additional_properties.each do |_name, _value| instance_variable_set("@#{_name}", _value) end @current_billing_manifest = current_billing_manifest unless current_billing_manifest == SKIP @next_billing_manifest = next_billing_manifest unless next_billing_manifest == SKIP end |