Class: Mautic::Form
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
#attributes, #attributes=, #changes, #create, #destroy, endpoint, in, #initialize, #mautic_id, #save, #update
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 |