lib/keepcon/entity/response.rb
module Keepcon
class Entity
class Response
attr_accessor :status, :body
def initialize(http_response)
self.body = http_response.body
self.status = http_response.status
end
def data
@data ||= (body.blank? && {}) || Hash.from_xml(body).first[1]
end
end
end
end