Module: Siren::JsonQuery::Query

Defined in:
lib/siren/json_query_nodes.rb

Instance Method Summary collapse

Instance Method Details

#filtersObject



10
11
12
# File 'lib/siren/json_query_nodes.rb', line 10

def filters
  elements[1].elements
end

#value(root, symbols, current = nil) ⇒ Object



5
6
7
8
# File 'lib/siren/json_query_nodes.rb', line 5

def value(root, symbols, current = nil)
  object = identifier.value(root, symbols, current)
  filters.inject(object) { |value, filter| filter.value(value, root, symbols, current) }
end