Module: Quercle
- Defined in:
- lib/quercle.rb,
lib/quercle/version.rb,
lib/quercle/operator.rb,
lib/quercle/predicate.rb,
lib/quercle/predicate_set.rb,
lib/quercle/operator/equals.rb,
lib/quercle/operator/contains.rb,
lib/quercle/operator/ends_with.rb,
lib/quercle/operator/less_than.rb,
lib/quercle/operator/starts_with.rb,
lib/quercle/operator/greater_than.rb
Defined Under Namespace
Modules: Operator Classes: Predicate, PredicateSet
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Class Method Details
.parse(json_or_hash) ⇒ Object
7 8 9 10 |
# File 'lib/quercle.rb', line 7 def self.parse(json_or_hash) json_or_hash = JSON.parse(json_or_hash) if json_or_hash.is_a?(String) json_or_hash['predicates'] ? PredicateSet.new(json_or_hash) : Predicate.new(json_or_hash) end |