Class: CBTRUBY::CbtClient::ScreenshotVersionInfo

Inherits:
ScreenshotInfo show all
Defined in:
lib/cbt_ruby/screenshot_info.rb

Instance Method Summary collapse

Methods inherited from ScreenshotInfo

#running

Constructor Details

#initialize(client:, session:, version:) ⇒ ScreenshotVersionInfo

Returns a new instance of ScreenshotVersionInfo.



20
21
22
23
24
# File 'lib/cbt_ruby/screenshot_info.rb', line 20

def initialize(client:, session:, version:)
  @client = client
  @session = session
  @version = version
end

Instance Method Details

#requestObject



26
27
28
# File 'lib/cbt_ruby/screenshot_info.rb', line 26

def request
  @client.basic_request(url: "screenshots/#{@session}/#{@version}")
end