An open API service indexing awesome lists of open source software.

https://github.com/tuwukee/ruby-refract

Refract lookup
https://github.com/tuwukee/ruby-refract

Last synced: 12 months ago
JSON representation

Refract lookup

Awesome Lists containing this project

README

          

# ruby-refract

Implemenation of recursive search inside JSON structures according to refract document format specification.

## Usage

```
require 'ruby-refract'

api_object = { "element"=>"parseResult", "content" => [{"element"=>"category", "meta"=>{"classes"=>["api"], "title"=>{"element"=>"string", "content"=>"The Simplest API"}}}]}

Refract.search(api_object, { 'element' => 'category' })
```

### Get all resource groups

```
Refract.search(api_object, {
"element" => "category",
"meta" => {
"classes" => [
"resourceGroup",
],
}
})
```