Class: Virgo::FormModel

Inherits:
Object
  • Object
show all
Extended by:
ActiveModel::Naming
Includes:
ActiveModel::Conversion, ActiveModel::Validations
Defined in:
app/models/virgo/form_model.rb

Direct Known Subclasses

PostSearch

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ FormModel

Returns a new instance of FormModel.



7
8
9
10
11
12
13
# File 'app/models/virgo/form_model.rb', line 7

def initialize(attributes = {})
  if attributes
    attributes.each do |name, value|
      send("#{name}=", value)
    end
  end
end

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/models/virgo/form_model.rb', line 15

def persisted?
  false
end