Class: InklingApi::Mashify

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/inkling_api.rb

Instance Method Summary collapse

Instance Method Details

#on_complete(env) ⇒ Object



15
16
17
# File 'lib/inkling_api.rb', line 15

def on_complete(env)
  super if Hash === env[:body]
end

#parse(body) ⇒ Object



19
20
21
# File 'lib/inkling_api.rb', line 19

def parse(body)
  Hashie::Mash.new(body)
end