Class: Ksql::Handlers::Raw

Inherits:
Object
  • Object
show all
Defined in:
lib/ksql/handlers/raw.rb

Class Method Summary collapse

Class Method Details

.handle(response) ⇒ Array/Hash/String/Integer

Return the Response raw parsed body

Parameters:

Returns:

  • (Array/Hash/String/Integer)

    Response parsed body



13
14
15
16
17
# File 'lib/ksql/handlers/raw.rb', line 13

def self.handle(response)
  return Ksql::Error.new(response.body) if response.error?

  response.body
end