Class: Applitools::Selenium::RenderInfo
- Inherits:
-
Object
- Object
- Applitools::Selenium::RenderInfo
- Includes:
- Jsonable
- Defined in:
- lib/applitools/selenium/visual_grid/render_info.rb
Instance Method Summary collapse
-
#json_data ⇒ Object
, :region, :emulationInfo.
Instance Method Details
#json_data ⇒ Object
, :region, :emulationInfo
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/applitools/selenium/visual_grid/render_info.rb', line 9 def json_data result = { width: width, height: height, sizeMode: size_mode } result['emulationInfo'] = json_value(emulation_info) if emulation_info result['iosDeviceInfo'] = json_value(ios_device_info) if ios_device_info result['region'] = json_value(region) if size_mode == 'region' result['selector'] = json_value(region) if size_mode == 'selector' result['selector'] = json_value(region) if size_mode == 'full-selector' result end |