Class: Applitools::Selenium::RenderResources
- Inherits:
-
Hash
- Object
- Hash
- Applitools::Selenium::RenderResources
- Defined in:
- lib/applitools/selenium/render_resources.rb
Defined Under Namespace
Classes: ResourceMissingInCache
Instance Method Summary collapse
Instance Method Details
#[]=(key, value) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/applitools/selenium/render_resources.rb', line 7 def []=(key, value) unless key.is_a? URI raise Applitools::EyesIllegalArgument, "Expected key to be an instance of URI (but got #{key.class}) - #{key}" end unless value.is_a? Applitools::Selenium::VGResource raise( Applitools::EyesIllegalArgument, 'Expected value to be an instance of Applitools::Selenium::VGResource' \ " (but got #{value.class}) - #{key}:#{value}" ) end super end |