Skip to content

YutaGoto/ika3

Repository files navigation

Ika3

CircleCI Ruby Style Guide Gem Version

Weapon data from Splatoon3. This is Unofficial data.

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add ika3

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install ika3

Usage

require "ika3"

Find Weapon data

wakaba = Ika3::Weapon.find_by_name("わかばシューター")
=> {:name=>"わかばシューター", :sub=>"スプラボム", :special=>"グレートバリア"}

wakaba.special
=> "グレートバリア"

Get Weapons from Sub-Weapon

splatbombs = Ika3::Weapon.filter_by_sub("スプラボム")
splatbombs
=>
[{:name=>"わかばシューター", :sub=>"スプラボム", :special=>"グレートバリア"},
 {:name=>"スプラチャージャー", :sub=>"スプラボム", :special=>"キューインキ"},
 {:name=>"スプラスコープ", :sub=>"スプラボム", :special=>"キューインキ"},
 {:name=>"ノヴァブラスター", :sub=>"スプラボム", :special=>"ショクワンダー"},
 {:name=>"クラッシュブラスター", :sub=>"スプラボム", :special=>"ウルトラショット"},
 {:name=>"パブロ", :sub=>"スプラボム", :special=>"メガホンレーザー5.1ch"}]

Get Schedule

Initialize with your contact information. e.g. Twitter, GitHub, Homepage URL and so on.

ika3_schedule = Ika3::Schedule.new('GitHub@YutaGoto')
ika3_schedule.bankara_challenge_next
=>
{"start_time"=>"2023-02-07T13:00:00+09:00",
 "end_time"=>"2023-02-07T15:00:00+09:00",
 "rule"=>{"key"=>"LOFT", "name"=>"ガチヤグラ"},
 "stages"=>
  [{"id"=>9,
    "name"=>"ヒラメが丘団地",
    "image"=> "https://....."},
   {"id"=>11,
    "name"=>"キンメダイ美術館",
    "image"=> "https://...."}],
 "is_fest"=>false}

Note

This gem is NOT related to Nintendo.

The Schedule is used an unofficial API. https://spla3.yuu26.com/

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/YutaGoto/ika3.

License

The gem is available as open source under the terms of the MIT License.