store and display favorite person by tiss_id

This commit is contained in:
Marco Zeisler
2020-04-21 18:06:07 +02:00
parent c32819d819
commit fbfc12e096
31 changed files with 153 additions and 88 deletions
+10 -1
View File
@@ -15,9 +15,18 @@ class TissCrawler
JSON.parse(response.body)["results"]
end
def self.get_details(params)
api = params[:api]
id = params[:tiss_id]
url = $host + api + id
puts(url)
def details
response = HTTParty.get(url)
JSON.parse(response.body)
end
def self.get_host
$host
end
end