Module: Hubba
- Defined in:
- lib/hubba/reports.rb,
lib/hubba/reports/folio.rb,
lib/hubba/reports/stats.rb,
lib/hubba/reports/reports/base.rb,
lib/hubba/reports/reports/size.rb,
lib/hubba/reports/reports/stars.rb,
lib/hubba/reports/reports/topics.rb,
lib/hubba/reports/reports/catalog.rb,
lib/hubba/reports/reports/summary.rb,
lib/hubba/reports/reports/traffic.rb,
lib/hubba/reports/reports/updates.rb,
lib/hubba/reports/reports/timeline.rb,
lib/hubba/reports/reports/trending.rb,
lib/hubba/reports/reports/languages.rb,
lib/hubba/reports/reports/traffic_pages.rb,
lib/hubba/reports/reports/traffic_referrers.rb
Defined Under Namespace
Classes: Folio, Report, ReportCatalog, ReportLanguages, ReportSize, ReportStars, ReportSummary, ReportTimeline, ReportTopics, ReportTraffic, ReportTrafficPages, ReportTrafficReferrers, ReportTrending, ReportUpdates, Stats
Class Method Summary collapse
-
.stats(hash_or_path = './repos.yml') ⇒ Object
use read_stats or such - why? why not?.
Class Method Details
.stats(hash_or_path = './repos.yml') ⇒ Object
use read_stats or such - why? why not?
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/hubba/reports.rb', line 28 def self.stats( hash_or_path='./repos.yml' ) ## use read_stats or such - why? why not? h = if hash_or_path.is_a?( String ) ## assume it is a file path!!! path = hash_or_path YAML.load_file( path ) else hash_or_path # assume its a hash / reposet already!!! end Folio.new( h ) ## wrap in "easy-access" facade / wrapper end |