Class: EasyMail::BaseModel
- Inherits:
-
Object
- Object
- EasyMail::BaseModel
- Extended by:
- ActiveModel::Naming, ActiveModel::Translation
- Includes:
- ActiveModel::Conversion, ActiveModel::Validations
- Defined in:
- lib/easy_mail/base_model.rb
Instance Attribute Summary collapse
-
#email2 ⇒ Object
Returns the value of attribute email2.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ BaseModel
constructor
A new instance of BaseModel.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ BaseModel
Returns a new instance of BaseModel.
12 13 14 15 16 |
# File 'lib/easy_mail/base_model.rb', line 12 def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end |
Instance Attribute Details
#email2 ⇒ Object
Returns the value of attribute email2.
8 9 10 |
# File 'lib/easy_mail/base_model.rb', line 8 def email2 @email2 end |
Instance Method Details
#persisted? ⇒ Boolean
18 19 20 |
# File 'lib/easy_mail/base_model.rb', line 18 def persisted? false end |