Class: CurdBee::Parser

Inherits:
HTTParty::Parser
  • Object
show all
Defined in:
lib/curdbee/parser.rb

Instance Method Summary collapse

Instance Method Details

#parseObject



4
5
6
7
8
9
10
# File 'lib/curdbee/parser.rb', line 4

def parse
  begin
    Crack::JSON.parse(body)
  rescue => e
    raise(CurdBee::Error::UnexpectedResponse.new(e.message), body)
  end
end