def method_missing(method, params = {})
      definition = DeskApi::Resource.build_self_link("/api/v2/#{method}")
      DeskApi::Resource.new(self, definition).tap do |res|
        res.query_params = params
        yield res if block_given?
      end
    end
def method_missing(method, params = {})
      definition = DeskApi::Resource.build_self_link("/api/v2/#{method}")
      DeskApi::Resource.new(self, definition).tap do |res|
        res.query_params = params
        yield res if block_given?
      end
    end
Returns a new resource based on the method you're trying to load:

 @example request cases
   my_cases = client.cases # GET '/api/v2/cases'
 @param method [Symbol] the method called
 @param params [Hash] additional query params
 @yield [DeskApi::Resource]
 @return [DeskApi::Resource]