Method: AdvancedBilling::ProductFamily#initialize

Defined in:
lib/advanced_billing/models/product_family.rb

#initialize(id: SKIP, name: SKIP, handle: SKIP, accounting_code: SKIP, description: SKIP, created_at: SKIP, updated_at: SKIP, additional_properties: {}) ⇒ ProductFamily

Returns a new instance of ProductFamily.



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/advanced_billing/models/product_family.rb', line 75

def initialize(id: SKIP, name: SKIP, handle: SKIP, accounting_code: SKIP,
               description: SKIP, created_at: SKIP, updated_at: SKIP,
               additional_properties: {})
  @id = id unless id == SKIP
  @name = name unless name == SKIP
  @handle = handle unless handle == SKIP
  @accounting_code = accounting_code unless accounting_code == SKIP
  @description = description unless description == SKIP
  @created_at = created_at unless created_at == SKIP
  @updated_at = updated_at unless updated_at == SKIP

  # Add additional model properties to the instance.
  additional_properties.each do |_name, _value|
    instance_variable_set("@#{_name}", _value)
  end
end