Exception: OXR::ApiError

Inherits:
Error
  • Object
show all
Defined in:
lib/oxr.rb

Instance Method Summary collapse

Instance Method Details

#descriptionObject



17
18
19
# File 'lib/oxr.rb', line 17

def description
  response['description']
end

#messageObject



13
14
15
# File 'lib/oxr.rb', line 13

def message
  cause.message
end

#responseObject



21
22
23
# File 'lib/oxr.rb', line 21

def response
  @response ||= JSON.parse cause.io.read
end