{"id":18088596,"url":"https://github.com/jish/bart","last_synced_at":"2025-04-13T03:14:38.525Z","repository":{"id":1178728,"uuid":"1076871","full_name":"jish/bart","owner":"jish","description":"A Ruby wrapper around the BART API.","archived":false,"fork":false,"pushed_at":"2015-07-11T18:32:06.000Z","size":201,"stargazers_count":9,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T03:14:28.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-11-13T07:07:13.000Z","updated_at":"2017-05-23T12:18:29.000Z","dependencies_parsed_at":"2022-08-16T12:25:29.615Z","dependency_job_id":null,"html_url":"https://github.com/jish/bart","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jish%2Fbart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jish%2Fbart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jish%2Fbart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jish%2Fbart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jish","download_url":"https://codeload.github.com/jish/bart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657920,"owners_count":21140846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-31T17:13:51.934Z","updated_at":"2025-04-13T03:14:38.499Z","avatar_url":"https://github.com/jish.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nA Ruby wrapper around the BART API. [http://api.bart.gov/](http://api.bart.gov/)\n\n[![Current gem version](https://badge.fury.io/rb/bart.svg)](https://rubygems.org/gems/bart)\n\n## Usage\n\nCreate a new station object\n\n```ruby\nrequire 'bart/station'\n\nstation = Bart::Station.new(abbr: 'ssan')\nstation.name\n# =\u003e \"South San Francisco\"\n```\n\nSee when then next trains are supposed to arrive\n\n```ruby\nstation.load_departures\nstation.departures.map do |d|\n  [d.destination.name, d.estimates.map { |e| e.minutes }]\nend\n# =\u003e [[\"Pittsburg/Bay Point\", [5, 25, 50]], [\"Millbrae\", [5, 25, 46]]]\n```\n\nOutput a list of upcoming departures:\n\n```ruby\nrequire 'bart'\nputs Bart(abbr: :powl).departures\n# San Francisco Int'l Airport 2, 22\n# Pittsburg/Bay Point 4, 19\n```\n\n_NOTE: This is still beta software. All public APIs are subject to change_\n\n### Testing\n\nTo run the tests run the `test` Rake task:\n\n    $ bundle install\n    $ bundle exec rake test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjish%2Fbart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjish%2Fbart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjish%2Fbart/lists"}