Class: Beastiary::ByWeakness
- Inherits:
-
Object
- Object
- Beastiary::ByWeakness
- Defined in:
- lib/rs_api-ruby/beastiary.rb
Class Method Summary collapse
Class Method Details
.getBeasts(identifier) ⇒ Object
52 53 54 55 |
# File 'lib/rs_api-ruby/beastiary.rb', line 52 def self.getBeasts(identifier) jsonRequest = open(Utils.baseURI + 'itemdb_rs/bestiary/weaknessBeasts.json?identifier=' + identifier.to_s).read return JSON.parse(jsonRequest) end |
.getNames ⇒ Object
47 48 49 50 |
# File 'lib/rs_api-ruby/beastiary.rb', line 47 def self.getNames jsonRequest = open(Utils.baseURI + 'itemdb_rs/bestiary/bestiary/weaknessNames.json').read return JSON.parse(jsonRequest) end |