Module: TestingBot::Resources::Screenshots

Included in:
Api
Defined in:
lib/testingbot/resources/screenshots.rb

Overview

Endpoints under /screenshots.

Instance Method Summary collapse

Instance Method Details

#get_screenshots(screenshots_id, params = {}) ⇒ Object

params accepts the optional excludeIds query param.



14
15
16
# File 'lib/testingbot/resources/screenshots.rb', line 14

def get_screenshots(screenshots_id, params = {})
  get("/screenshots/#{escape(screenshots_id)}#{query(params)}")
end

#get_screenshots_history(offset = 0, count = 10) ⇒ Object



9
10
11
# File 'lib/testingbot/resources/screenshots.rb', line 9

def get_screenshots_history(offset = 0, count = 10)
  get("/screenshots#{query(:offset => offset, :count => count)}")
end

#take_screenshots(configuration) ⇒ Object



5
6
7
# File 'lib/testingbot/resources/screenshots.rb', line 5

def take_screenshots(configuration)
  post("/screenshots", configuration)
end