class Powells::Response

Public Instance Methods

to_h() click to toggle source
# File lib/powells/response.rb, line 6
def to_h
  data = JSON.parse(body)
  data.is_a?(Array) ? data.first : data
end