Class: Adminpanel::Contact
- Inherits:
-
Object
- Object
- Adminpanel::Contact
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion, ActiveModel::Validations
- Defined in:
- app/models/adminpanel/contact.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Contact
constructor
A new instance of Contact.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ Contact
Returns a new instance of Contact.
15 16 17 18 19 |
# File 'app/models/adminpanel/contact.rb', line 15 def initialize(attributes = {}) attributes.each do |name, value| send("#{name}=", value) end end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
7 8 9 |
# File 'app/models/adminpanel/contact.rb', line 7 def body @body end |
#email ⇒ Object
Returns the value of attribute email.
7 8 9 |
# File 'app/models/adminpanel/contact.rb', line 7 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'app/models/adminpanel/contact.rb', line 7 def name @name end |
#subject ⇒ Object
Returns the value of attribute subject.
7 8 9 |
# File 'app/models/adminpanel/contact.rb', line 7 def subject @subject end |
Instance Method Details
#persisted? ⇒ Boolean
21 22 23 |
# File 'app/models/adminpanel/contact.rb', line 21 def persisted? false end |