0.0
No commit activity in last 3 years
No release in over 3 years
Uses Nokogiri for parsing classes from the Virgin Active website(s)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
>= 0

Runtime

 Project Readme

VaTimetable

Parses the Virgin Active website for a club and returns an array of workout classes.

Installation

Add this line to your application's Gemfile:

gem 'va_timetable'

And then execute:

$ bundle

Or install it yourself as:

$ gem install va_timetable

Usage

To return an array of workouts, instantiate a Timetable by passing the club name, and them call the classes method.

timetable = Timetable.new('broadgate')
workout_classes = timetable.classes

Each of the returned workouts has the following attributes:

  • club - the name of theVirgin Active club that was queried
  • name - the nane of the workout class/activity
  • start - the date and time the class/activity starts
  • finish - the date anf time the class/activity finishes
  • booking_required - does the class/activity need to be booked (true/false)

Contributing

  1. Fork it ( http://github.com/jacksop/va_timetable/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request