Class: Bickle::ResponseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/bickle/response_parser.rb

Class Method Summary collapse

Class Method Details

.parse(data) ⇒ Object



5
6
7
8
9
# File 'lib/bickle/response_parser.rb', line 5

def self.parse(data)
  JSON.parse(data)
rescue => e
  raise InvalidResponseError, e.message
end