Class: Telesocial::Client::ResponseParser

Inherits:
HTTParty::Parser
  • Object
show all
Defined in:
lib/telesocial/client.rb

Instance Method Summary collapse

Instance Method Details

#parseObject



13
14
15
16
17
18
19
# File 'lib/telesocial/client.rb', line 13

def parse
  begin
    Hashie::Mash.new(Crack::JSON.parse(body).values.first)
  rescue
    body
  end
end