Class: Crawler::Cinema

Inherits:
Object
  • 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

.cinemasObject



23
24
25
# File 'lib/crawler/cinema.rb', line 23

def self.cinemas
  Provider::Entries.new(:cinemas)
end

.moviesObject



27
28
29
# File 'lib/crawler/cinema.rb', line 27

def self.movies
  Provider::Entries.new(:movies)
end

.providersObject



19
20
21
# File 'lib/crawler/cinema.rb', line 19

def self.providers
  Provider.new
end