Class: SupportSegment::FormModel
- Inherits:
-
Object
- Object
- SupportSegment::FormModel
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion, ActiveModel::Validations
- Defined in:
- lib/support_segment/form_model.rb
Defined Under Namespace
Classes: NotImplemented, NotValid
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ FormModel
constructor
A new instance of FormModel.
-
#persisted? ⇒ Boolean
Forms are never themselves persisted.
Constructor Details
#initialize(attributes = {}) ⇒ FormModel
Returns a new instance of FormModel.
11 12 13 14 15 |
# File 'lib/support_segment/form_model.rb', line 11 def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end |
Instance Method Details
#persisted? ⇒ Boolean
Forms are never themselves persisted
18 19 20 |
# File 'lib/support_segment/form_model.rb', line 18 def persisted? false end |