Use double quotes

This commit is contained in:
Julian Herrero
2019-03-15 09:29:12 +01:00
parent 002e16ce30
commit 6d281affa5
9 changed files with 118 additions and 118 deletions

View File

@@ -1,9 +1,9 @@
require 'http'
require "http"
API_ENDPOINT = 'https://decide.madrid.es/graphql'.freeze
API_ENDPOINT = "https://decide.madrid.es/graphql".freeze
def make_request(query_string)
HTTP.headers('User-Agent' => 'Mozilla/5.0', accept: 'application/json')
HTTP.headers("User-Agent" => "Mozilla/5.0", accept: "application/json")
.get(
API_ENDPOINT,
params: { query: query_string.delete("\n").delete(" ") }