Ruby parse HTTP response
deeptishukla24 (2)

require 'net/http'
uri = URI('')

I'm using the above code to call this random dice generator.
I'm able to get the entire http response using the get method above.
But I'm stuck on how to access the result from that big HTML string?
I'm just trying to access the individual dice values (10 in this case).

You are viewing a single comment. View All
Answered by heyitsmarcus (287) [earned 5 cycles]
View Answer
heyitsmarcus (287)

@deeptishukla24 I think there is a check mark below the upvote icon in the top comment I made with the answer. I think you have to put your mouse over it for it to show up.

I'm referring back to this page on repl: