def call
      url = URI(api_url)
      http = Net::HTTP.new(url.host, url.port)
      http.use_ssl = true
      http.verify_mode = OpenSSL::SSL::VERIFY_NONE

      url.query = URI.encode_www_form(@params) if @params

      request = Net::HTTP::Get.new(url)
      request['key'] = ENV['MESER_ONGKIR_API_KEY']
      http.request(request)
    end
def call
      url = URI(api_url)
      http = Net::HTTP.new(url.host, url.port)
      http.use_ssl = true
      http.verify_mode = OpenSSL::SSL::VERIFY_NONE

      url.query = URI.encode_www_form(@params) if @params

      request = Net::HTTP::Get.new(url)
      request['key'] = ENV['MESER_ONGKIR_API_KEY']
      http.request(request)
    end
Creating new object

 @param
   account_type [String] it could be :starter
   main_path [String] it could be :city, :province
   params [Hash] it could be { id: id city / id province, province: id province }

 @example
   MeserOngkir::Api.new(account_type, main_path, params)