Class: Geri::Session

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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(options={})
  @email    = options[:email]
  @password = options[:password]
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



8
9
10
# File 'app/models/geri/session.rb', line 8

def email
  @email
end

#passwordObject (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

Returns:

  • (Boolean)


15
16
17
# File 'app/models/geri/session.rb', line 15

def persisted?
  false
end