Exception: OXR::ApiError
Overview
ApiError is raised when OXR encounters an error connecting to the Open Exchange Rates API server.
Instance Method Summary collapse
Instance Method Details
#description ⇒ Object
71 72 73 |
# File 'lib/oxr.rb', line 71 def description response['description'] end |
#message ⇒ Object
67 68 69 |
# File 'lib/oxr.rb', line 67 def cause. end |
#response ⇒ Object
75 76 77 |
# File 'lib/oxr.rb', line 75 def response @response ||= JSON.parse cause.io.read end |