Class: Beastiary::BySlayerCategory
- Inherits:
-
Object
- Object
- Beastiary::BySlayerCategory
- Defined in:
- lib/rs_api-ruby/beastiary.rb
Class Method Summary collapse
Class Method Details
.getBeasts(identifier) ⇒ Object
40 41 42 43 |
# File 'lib/rs_api-ruby/beastiary.rb', line 40 def self.getBeasts(identifier) jsonRequest = open(Utils.baseURI + 'itemdb_rs/bestiary/slayerBeasts.json?identifier=' + identifier.to_s).read return JSON.parse(jsonRequest) end |
.getNames ⇒ Object
35 36 37 38 |
# File 'lib/rs_api-ruby/beastiary.rb', line 35 def self.getNames jsonRequest = open(Utils.baseURI + 'itemdb_rs/bestiary/bestiary/slayerCatNames.json').read return JSON.parse(jsonRequest) end |