Module: Croque
- Defined in:
- lib/croque.rb,
lib/croque/version.rb,
lib/croque/monsieur.rb,
lib/croque/aggregator.rb
Defined Under Namespace
Modules: Aggregator Classes: Configuration, Monsieur
Constant Summary collapse
- VERSION =
"0.5.3"
Class Method Summary collapse
- .aggregate(date) ⇒ Object
- .all ⇒ Object
- .config ⇒ Object
- .configure {|@config ||= Croque::Configuration.new| ... } ⇒ Object
- .ranking(date, page: nil, per: nil) ⇒ Object
- .total_count(date) ⇒ Object
Class Method Details
.aggregate(date) ⇒ Object
40 41 42 |
# File 'lib/croque.rb', line 40 def aggregate(date) Croque::Aggregator.aggregate(date) end |
.all ⇒ Object
44 45 46 47 48 |
# File 'lib/croque.rb', line 44 def all # Get Aggregated List # return date list as Array Croque::Aggregator.all end |
.config ⇒ Object
14 15 16 |
# File 'lib/croque.rb', line 14 def self.config @config end |
.configure {|@config ||= Croque::Configuration.new| ... } ⇒ Object
10 11 12 |
# File 'lib/croque.rb', line 10 def self.configure(&block) yield @config ||= Croque::Configuration.new end |
.ranking(date, page: nil, per: nil) ⇒ Object
50 51 52 53 54 |
# File 'lib/croque.rb', line 50 def ranking(date, page: nil, per: nil) # Get ranking as Sorted Array # limit = 0 => all lines Croque::Monsieur.get_list(date, page, per) end |
.total_count(date) ⇒ Object
56 57 58 |
# File 'lib/croque.rb', line 56 def total_count(date) Croque::Monsieur.total_count(date) end |