module Elastic::Client::Error
Public Instance Methods
response()
click to toggle source
# File lib/elastic/client/error.rb, line 14 def response return @response if defined?(@response) if captures = message.match(/(?<response>\{.+\})$/) @response = JSON.parse(captures[:response]) end end
status()
click to toggle source
# File lib/elastic/client/error.rb, line 6 def status return @status if defined?(@status) if captures = message.match(/^\[(?<status>\d+)\]/) @status = captures[:status].to_i end end