Class: Lapis::Yggdrasil::Messaging::RefreshResponse
- Inherits:
-
TokenResponse
- Object
- Response
- TokenResponse
- Lapis::Yggdrasil::Messaging::RefreshResponse
- Defined in:
- lib/lapis/yggdrasil/messaging/refresh_response.rb
Overview
Response to a session renewal (refresh) request.
Instance Attribute Summary collapse
-
#profile ⇒ Profile
readonly
Profile selected for the user.
Attributes inherited from TokenResponse
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(message) ⇒ RefreshResponse
constructor
Creates a new refresh response by parsing a message received from the server.
Methods inherited from Response
Constructor Details
#initialize(message) ⇒ RefreshResponse
Creates a new refresh response by parsing a message received from the server.
19 20 21 22 23 |
# File 'lib/lapis/yggdrasil/messaging/refresh_response.rb', line 19 def initialize() super() hash = JSON.parse(.body, :symbolize_names => true) @profile = Profile.from_properties(hash[:selectedProfile]) end |
Instance Attribute Details
#profile ⇒ Profile (readonly)
Profile selected for the user.
15 16 17 |
# File 'lib/lapis/yggdrasil/messaging/refresh_response.rb', line 15 def profile @profile end |