Class: Mautic::Form

Inherits:
Model
  • Object
show all
Defined in:
app/models/mautic/form.rb

Instance Attribute Summary

Attributes inherited from Model

#changed, #connection, #errors

Instance Method Summary collapse

Methods inherited from Model

#attributes, #attributes=, #changed?, #changes, #create, #destroy, endpoint, in, #initialize, #mautic_id, #save, #to_mautic, #update, #update_columns

Constructor Details

This class inherits a constructor from Mautic::Model

Instance Method Details

#assign_attributes(source = nil) ⇒ Object



4
5
6
# File 'app/models/mautic/form.rb', line 4

def assign_attributes(source = nil)
  self.attributes = { name: source['name'], fields: source['fields'] } if source.is_a? Hash
end