Method: AdvancedBilling::CustomFieldValueChange#initialize
- Defined in:
- lib/advanced_billing/models/custom_field_value_change.rb
#initialize(event_type:, metafield_name:, metafield_id:, old_value:, new_value:, resource_type:, resource_id:, additional_properties: {}) ⇒ CustomFieldValueChange
Returns a new instance of CustomFieldValueChange.
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/advanced_billing/models/custom_field_value_change.rb', line 66 def initialize(event_type:, metafield_name:, metafield_id:, old_value:, new_value:, resource_type:, resource_id:, additional_properties: {}) @event_type = event_type @metafield_name = @metafield_id = @old_value = old_value @new_value = new_value @resource_type = resource_type @resource_id = resource_id # Add additional model properties to the instance. additional_properties.each do |_name, _value| instance_variable_set("@#{_name}", _value) end end |