Class: SirvRestApi::JwtResponse
- Inherits:
-
Object
- Object
- SirvRestApi::JwtResponse
- Defined in:
- lib/sirv_rest_api/models.rb
Overview
JWT response
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ JwtResponse
constructor
A new instance of JwtResponse.
Constructor Details
#initialize(data = {}) ⇒ JwtResponse
Returns a new instance of JwtResponse.
256 257 258 259 |
# File 'lib/sirv_rest_api/models.rb', line 256 def initialize(data = {}) @url = data["url"] @token = data["token"] end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
254 255 256 |
# File 'lib/sirv_rest_api/models.rb', line 254 def token @token end |
#url ⇒ Object
Returns the value of attribute url.
254 255 256 |
# File 'lib/sirv_rest_api/models.rb', line 254 def url @url end |