Class: Crawler::Cinema
- Inherits:
-
Object
show all
- Includes:
- Base
- Defined in:
- lib/crawler/cinema.rb,
lib/crawler/cinema/entries.rb,
lib/crawler/cinema/duration.rb,
lib/crawler/cinema/provider.rb,
lib/crawler/cinema/core/version.rb
Defined Under Namespace
Modules: Core, Duration, Providers
Classes: Provider
Class Method Summary
collapse
Class Method Details
.add_provider(provider_name, options = {}) ⇒ Object
13
14
15
16
17
|
# File 'lib/crawler/cinema.rb', line 13
def self.add_provider(provider_name, options = {})
options.assert_valid_keys :insert_at
Provider::PROVIDERS.insert(options[:insert_at] || -1, provider_name)
end
|
.cinemas ⇒ Object
23
24
25
|
# File 'lib/crawler/cinema.rb', line 23
def self.cinemas
Provider::Entries.new(:cinemas)
end
|
.movies ⇒ Object
27
28
29
|
# File 'lib/crawler/cinema.rb', line 27
def self.movies
Provider::Entries.new(:movies)
end
|
.providers ⇒ Object
19
20
21
|
# File 'lib/crawler/cinema.rb', line 19
def self.providers
Provider.new
end
|