Class: Timetable
- Inherits:
-
Object
- Object
- Timetable
- Defined in:
- lib/va_timetable/timetable.rb
Defined Under Namespace
Classes: Workout
Constant Summary collapse
- URL_CANDIDATES =
%w( http://www.virginactive.co.uk/microsites/%{club}/timetable http://www.virginactive.co.uk/clubs/%{club}/timetables )
Instance Attribute Summary collapse
-
#club ⇒ Object
readonly
Returns the value of attribute club.
Instance Method Summary collapse
- #classes ⇒ Object
-
#initialize(club) ⇒ Timetable
constructor
A new instance of Timetable.
Constructor Details
#initialize(club) ⇒ Timetable
Returns a new instance of Timetable.
12 13 14 |
# File 'lib/va_timetable/timetable.rb', line 12 def initialize(club) @club = club.to_s end |
Instance Attribute Details
#club ⇒ Object (readonly)
Returns the value of attribute club.
5 6 7 |
# File 'lib/va_timetable/timetable.rb', line 5 def club @club end |
Instance Method Details
#classes ⇒ Object
16 17 18 |
# File 'lib/va_timetable/timetable.rb', line 16 def classes @workouts ||= fetch_classes end |