Class: Trufina::Requests::LoginRequest

Inherits:
BaseRequest show all
Includes:
HappyMapper
Defined in:
lib/requests.rb

Overview

When we wan to send a user to Trufina to register and/or provide their information and allow us access, we send this to Trufina, who sends us back a PLID we can use to generate the redirect URL to which we should send the user.

Instance Method Summary collapse

Methods inherited from BaseRequest

#render

Constructor Details

#initialize(*args) ⇒ LoginRequest

Returns a new instance of LoginRequest.



130
131
132
133
134
135
# File 'lib/requests.rb', line 130

def initialize *args
  super(args)
  
  # Trufina is brilliant, and they fail if this isn't in the request (even though they don't actually read the value)
  seed.residence_address.timeframe = 'current' if seed && seed.residence_address
end