Module: Authpds::Session::Record

Included in:
Authpds::Session
Defined in:
lib/authpds/session/record.rb

Instance Method Summary collapse

Instance Method Details

#get_record(login) ⇒ Object

Get the record associated with this PDS user.



5
6
7
8
# File 'lib/authpds/session/record.rb', line 5

def get_record()
  record = (klass.() ||
    klass.new( => ))
end

#set_recordObject

Set the record information associated with this PDS user.



11
12
13
14
15
16
17
# File 'lib/authpds/session/record.rb', line 11

def set_record
  self.attempted_record = get_record(pds_user.send(pds_record_identifier))
  self.attempted_record.expiration_date = expiration_date
  # Do this part only if user data has expired.
  reset_record attempted_record if self.attempted_record.expired?
  self.attempted_record.user_attributes= additional_attributes
end