Class: SupportSegment::FormModel

Inherits:
Object
  • Object
show all
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

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

Returns:

  • (Boolean)


18
19
20
# File 'lib/support_segment/form_model.rb', line 18

def persisted?
  false
end