Class: Worldfootball::Page::Team

Inherits:
Worldfootball::Page show all
Defined in:
lib/worldfootball/page_team.rb

Overview

note: use nested class for now - why? why not?

Constant Summary

Constants inherited from Worldfootball::Page

GENERATED_RE

Class Method Summary collapse

Methods inherited from Worldfootball::Page

#assert, #doc, from_file, #generated, #generated_in_days_ago, #initialize, #keywords, #log, #squish, #title, #url

Constructor Details

This class inherits a constructor from Worldfootball::Page

Class Method Details

.from_cache(slug) ⇒ Object



7
8
9
10
11
# File 'lib/worldfootball/page_team.rb', line 7

def self.from_cache( slug )
  url  = Metal.team_url( slug )
  html = Webcache.read( url )
  new( html )
end