Class: PseudoModel::Base
- Inherits:
-
Object
- Object
- PseudoModel::Base
- Includes:
- ActiveModel::Conversion, ActiveModel::Validations
- Defined in:
- lib/pseudo_model.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/pseudo_model.rb', line 8 def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end |
Instance Method Details
#persisted? ⇒ Boolean
14 15 16 |
# File 'lib/pseudo_model.rb', line 14 def persisted? false end |