Class: AuthLh::SessionResponse
- Inherits:
-
Object
- Object
- AuthLh::SessionResponse
- Defined in:
- lib/auth_lh/session_response.rb
Instance Attribute Summary collapse
-
#destination_url ⇒ Object
Returns the value of attribute destination_url.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SessionResponse
constructor
A new instance of SessionResponse.
Constructor Details
#initialize(attributes = {}) ⇒ SessionResponse
Returns a new instance of SessionResponse.
5 6 7 8 9 10 11 12 13 |
# File 'lib/auth_lh/session_response.rb', line 5 def initialize(attributes={}) attributes.each do |k,v| if k.to_s == 'user' self.user = User.new(v) if v.present? else self.send("#{k}=", v) end end end |
Instance Attribute Details
#destination_url ⇒ Object
Returns the value of attribute destination_url.
3 4 5 |
# File 'lib/auth_lh/session_response.rb', line 3 def destination_url @destination_url end |
#user ⇒ Object
Returns the value of attribute user.
3 4 5 |
# File 'lib/auth_lh/session_response.rb', line 3 def user @user end |