Class: SirvRestApi::JwtResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/sirv_rest_api/models.rb

Overview

JWT response

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tokenObject

Returns the value of attribute token.



254
255
256
# File 'lib/sirv_rest_api/models.rb', line 254

def token
  @token
end

#urlObject

Returns the value of attribute url.



254
255
256
# File 'lib/sirv_rest_api/models.rb', line 254

def url
  @url
end