class NasaApi::Error
Attributes
http_code[R]
http_msg[R]
message[R]
Public Class Methods
new(response)
click to toggle source
# File lib/nasa_api.rb, line 10 def initialize(response) @http_code = response.code @http_msg = response.message @message = response['error']['message'] if response['error'] end