Class: IRail::API::MIVBSTIB
- Inherits:
-
Object
- Object
- IRail::API::MIVBSTIB
- Defined in:
- lib/ruby-irail/packages/mivbstib/api.rb
Constant Summary collapse
- API_URL =
"http://data.irail.be"
- PACKAGE_ID =
"MIVBSTIB"
- STATIONS_URI =
"Stations"
- PARSER_FORMAT =
"json"
Instance Method Summary collapse
Instance Method Details
#stations ⇒ Object
8 9 10 11 12 |
# File 'lib/ruby-irail/packages/mivbstib/api.rb', line 8 def stations url = build_station_list_url json = IRail::Request.get(url) IRail::MIVBSTIB::JSONParser.parse_stations(json) end |