Class: MetaNexus::Api
- Inherits:
-
Object
- Object
- MetaNexus::Api
- Includes:
- HTTParty
- Defined in:
- lib/meta_nexus/api.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call_api(call_url) ⇒ Object
8 9 10 11 |
# File 'lib/meta_nexus/api.rb', line 8 def self.call_api(call_url) response = HTTParty.get(call_url) JSON.parse(response.body) end |
Instance Method Details
#url ⇒ Object
4 5 6 |
# File 'lib/meta_nexus/api.rb', line 4 def url "https://#{MetaNexus.config.region}.api.battle.net" end |