class TriviaCrack::Errors::RequestError
Attributes
body[R]
Public: The response body that was returned by the Trivia Crack server.
code[R]
Public: The HTTP status code returned by the Trivia Crack server.
url[R]
Public: The URL that was requested.
Public Class Methods
new(code, url, body)
click to toggle source
Public: Initializes a RequestError
.
code - The HTTP status code returned by the Trivia Crack server. url - The URL that was requested. body - The response body that was returned by the Trivia Crack server.
# File lib/triviacrack/errors/request_error.rb, line 21 def initialize(code, url, body) @code = code @url = url @body = body end