class CocRb::ClashApi
Public Class Methods
call_API(status: false)
click to toggle source
This method can call any of the API endpoint except the player verifier endpoint.Takes requestUrl in the configuration block.
# File lib/cocRb/api.rb, line 39 def self.call_API(status: false) get res = @conn.get(CocRb.configuration.url) if status res.status else val = res.body convert = JSON.parse(val) end end