Class: Applitools::RenderingInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/applitools/core/rendering_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RenderingInfo

Returns a new instance of RenderingInfo.



6
7
8
9
10
# File 'lib/applitools/core/rendering_info.rb', line 6

def initialize(response)
  Applitools::ArgumentGuard.not_nil(response, 'response')
  Applitools::ArgumentGuard.hash(response, 'response')
  self.response = response
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/applitools/core/rendering_info.rb', line 5

def response
  @response
end

Instance Method Details

#access_tokenObject



24
25
26
# File 'lib/applitools/core/rendering_info.rb', line 24

def access_token
  response['accessToken']
end

#results_urlObject



16
17
18
# File 'lib/applitools/core/rendering_info.rb', line 16

def results_url
  response['resultsUrl']
end

#service_urlObject



12
13
14
# File 'lib/applitools/core/rendering_info.rb', line 12

def service_url
  response['serviceUrl']
end

#stitching_service_urlObject



20
21
22
# File 'lib/applitools/core/rendering_info.rb', line 20

def stitching_service_url
  response['stitchingServiceUrl']
end