require 'bearcat/api_array' module Badgrcat class ApiArray < Bearcat::ApiArray def [](key) if key.is_a?(Numeric) super else @raw_response.body[key] end end def status self["status"] end def self.array_key(response) if response.body.is_a?(Hash) && response.body.key?("result") "result" else nil end end end end