Class: Timetable

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

Instance Method Summary collapse

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

#clubObject (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

#classesObject



16
17
18
# File 'lib/va_timetable/timetable.rb', line 16

def classes
  @workouts ||= fetch_classes
end