starwars:用于 http 的 Ruby 接口

时间:2021-07-04 05:06:43
【文件属性】:
文件名称:starwars:用于 http 的 Ruby 接口
文件大小:35KB
文件格式:ZIP
更新时间:2021-07-04 05:06:43
Ruby 星球大战 的 Ruby 接口——星球大战 API API 支持 电影 API 人员 API 星球API 物种API 车辆API 星舰API 安装 将此行添加到应用程序的 Gemfile 中: gem 'starwars' 然后执行: $ bundle 或者自己安装: $ gem install starwars 可用资源 Starwars::Person () Starwars::Film () Starwars::Planet () Starwars::Specie () Starwars::Starship () Starwars::Vehicle () 用法 上面定义的所有资源都有 2 个函数, #fetch和#fetch_all #拿来 #fetch用于通过 ID 或资源 URL 获取单个资源 Starwars :: Person . fe
【文件预览】:
starwars-master
----starwars.gemspec(1002B)
----.travis.yml(581B)
----Guardfile(406B)
----Rakefile(576B)
----.rubocop.yml(31B)
----Gemfile(397B)
----.rspec(30B)
----spec()
--------starwars()
--------spec_helper.rb(876B)
--------fixtures()
----.gitignore(185B)
----lib()
--------starwars.rb(911B)
--------starwars()
----README.md(3KB)
----LICENSE.txt(1KB)

网友评论