Class: Deli::Adapters::Neo4j::Order

Inherits:
Param show all
Includes:
Param::Order
Defined in:
lib/deli/adapters/neo4j.rb

Instance Attribute Summary

Attributes inherited from Param

#controller, #default, #exact, #key, #model_name, #namespace

Instance Method Summary (collapse)

Methods included from Param::Order

#order_hash, #parse

Methods inherited from Param

#render_value

Methods inherited from Param

#initialize, #inspect, #parse, #parse_value

Constructor Details

This class inherits a constructor from Deli::Param

Instance Method Details

- (Object) render(value)



46
47
48
49
50
# File 'lib/deli/adapters/neo4j.rb', line 46

def render(value)
  parse(value).map do |item|
    [render_name(item[:namespace], item[:key]), item[:operators][0] == "+" ? :asc : :desc]
  end
end