【文件属性】:
文件名称:mlb:MLB.rb是一个Ruby库,用于检索当前的美国职棒大联盟的球员,经理,球队,部门和联赛
文件大小:65KB
文件格式:ZIP
更新时间:2021-05-19 07:40:03
Ruby
美国职业棒球大联盟
MLB.rb是一个Ruby库,用于检索当前的美国职棒大联盟的球员,经理,球队,部门和联赛。
安装
gem install mlb
文献资料
使用范例
$ irb
>> require 'mlb'
>> MLB::Team.all.first.name # => "Arizona Diamondbacks"
>> MLB::Team.all.first.league # => "National League"
>> MLB::Team.all.first.division # => "National League West"
>> MLB::Team.all.first.manager # => "Bob Melvin"
>> MLB::
【文件预览】:
mlb-master
----.travis.yml(295B)
----cache()
--------teams.json(822KB)
----Rakefile(1KB)
----mlb.gemspec(882B)
----.rubocop.yml(2KB)
----.yardopts(57B)
----CONTRIBUTING.md(2KB)
----Gemfile(320B)
----.rspec(8B)
----spec()
--------helper.rb(539B)
--------mlb_spec.rb(4KB)
----LICENSE.md(1KB)
----.gitignore(88B)
----lib()
--------mlb.rb(62B)
--------mlb()
----README.md(3KB)