Class: ImageSieve
- Inherits:
-
Object
- Object
- ImageSieve
- Defined in:
- lib/forki/scrapers/sieves/image_sieves/image_sieve.rb.rb
Class Method Summary collapse
- .can_process_with_sieve?(graphql_objects) ⇒ Boolean
- .sieve_for_graphql_objects(graphql_objects) ⇒ Object
Class Method Details
.can_process_with_sieve?(graphql_objects) ⇒ Boolean
2 3 4 |
# File 'lib/forki/scrapers/sieves/image_sieves/image_sieve.rb.rb', line 2 def self.can_process_with_sieve?(graphql_objects) !sieve_class_for_graphql_objects(graphql_objects).nil? end |
.sieve_for_graphql_objects(graphql_objects) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/forki/scrapers/sieves/image_sieves/image_sieve.rb.rb', line 6 def self.sieve_for_graphql_objects(graphql_objects) sieve = sieve_class_for_graphql_objects(graphql_objects) return nil if sieve.nil? sieve.sieve(graphql_objects) end |