Module: CycleHire
- Defined in:
- lib/cycle_hire.rb
Defined Under Namespace
Classes: Journey, JourneyParser, Session, Station, StationParser
Constant Summary collapse
- ROOT =
File.(File.dirname(__FILE__))
- VERSION =
'1.0.3'
Class Method Summary collapse
-
.authenticate(email, password) ⇒ Object
raises CycleHire::Session::AuthenticationError.
- .stations ⇒ Object
Class Method Details
.authenticate(email, password) ⇒ Object
raises CycleHire::Session::AuthenticationError
12 13 14 15 |
# File 'lib/cycle_hire.rb', line 12 def self.authenticate(email, password) session = Session.new email, password session.authenticate! end |
.stations ⇒ Object
17 18 19 |
# File 'lib/cycle_hire.rb', line 17 def self.stations StationParser.get_stations end |