Class: Geri::Session
- Inherits:
-
Object
- Object
- Geri::Session
- Extended by:
- ActiveModel::Naming
- Includes:
- ActiveModel::Conversion, ActiveModel::Validations
- Defined in:
- app/models/geri/session.rb
Overview
Simple class to allow use of form for
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Session
constructor
A new instance of Session.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ Session
Returns a new instance of Session.
10 11 12 13 |
# File 'app/models/geri/session.rb', line 10 def initialize(={}) @email = [:email] @password = [:password] end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
8 9 10 |
# File 'app/models/geri/session.rb', line 8 def email @email end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
8 9 10 |
# File 'app/models/geri/session.rb', line 8 def password @password end |
Instance Method Details
#persisted? ⇒ Boolean
15 16 17 |
# File 'app/models/geri/session.rb', line 15 def persisted? false end |