store and display favorite person by tiss_id
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user