Class: VideoSieve
- Inherits:
-
Object
show all
- Defined in:
- lib/forki/scrapers/sieves/video_sieves/video_sieve.rb
Class Method Summary
collapse
Class Method Details
.can_process_with_sieve?(graphql_objects) ⇒ Boolean
2
3
4
|
# File 'lib/forki/scrapers/sieves/video_sieves/video_sieve.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/video_sieves/video_sieve.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
|