Class: Applitools::Selenium::CssParser::FindEmbeddedResources
- Inherits:
-
Object
- Object
- Applitools::Selenium::CssParser::FindEmbeddedResources
- Defined in:
- lib/applitools/selenium/css_parser/find_embedded_resources.rb
Defined Under Namespace
Classes: CssParseError
Instance Attribute Summary collapse
-
#css ⇒ Object
Returns the value of attribute css.
Instance Method Summary collapse
- #fonts ⇒ Object
- #images ⇒ Object
- #imported_css ⇒ Object
-
#initialize(css) ⇒ FindEmbeddedResources
constructor
A new instance of FindEmbeddedResources.
Constructor Details
#initialize(css) ⇒ FindEmbeddedResources
Returns a new instance of FindEmbeddedResources.
16 17 18 19 |
# File 'lib/applitools/selenium/css_parser/find_embedded_resources.rb', line 16 def initialize(css) self.css = css @nodes_by_type = {} end |
Instance Attribute Details
#css ⇒ Object
Returns the value of attribute css.
14 15 16 |
# File 'lib/applitools/selenium/css_parser/find_embedded_resources.rb', line 14 def css @css end |
Instance Method Details
#fonts ⇒ Object
25 26 27 |
# File 'lib/applitools/selenium/css_parser/find_embedded_resources.rb', line 25 def fonts fetch_urls(font_face_rules) end |
#images ⇒ Object
29 30 31 |
# File 'lib/applitools/selenium/css_parser/find_embedded_resources.rb', line 29 def images fetch_urls(images_rules) end |
#imported_css ⇒ Object
21 22 23 |
# File 'lib/applitools/selenium/css_parser/find_embedded_resources.rb', line 21 def imported_css fetch_urls(import_rules) end |