How do I get all posts from a specific category?

awesome thanks.. anyone know how to use the Ruby gem to call this?
https://github.com/discourse/discourse_api

I see in the source code, but wasnt able to create the right parameters to successfully retrieve the query results.

  # @param term [String] a search term
  # @param options [Hash] A customizable set of options
  # @option options [String] :type_filter Returns results of the specified type.
  # @return [Array] Return results as an array of Hashes.
  def search(term, options={})
    response = get('/search/query', options.merge(term: term))
    response[:body]
  end