Class: String

Inherits:
Object
  • Object
show all
Includes:
CX::Mongo::Query::Postfix
Defined in:
lib/cx/mongo_query/operators.rb

Overview

EG Using string as an attribute name: ‘name’.ne(‘Colin’) => “name”=>{“$gte”=>“Colin”} ‘date’.le(‘20151231’) => “date”=>{“$lte”=>“20151231”}

Using string as target of $in and $nin operators ‘abcdefg’.nin => “$nin”=>“abcdefg”

Instance Method Summary collapse

Methods included from CX::Mongo::Query::Postfix

#eq, #ge, #gt, #le, #lt, #ne

Instance Method Details

#inObject



147
# File 'lib/cx/mongo_query/operators.rb', line 147

def in;  CX::Mongo::Query.in_s(self)   end

#ninObject



148
# File 'lib/cx/mongo_query/operators.rb', line 148

def nin; CX::Mongo::Query.nin_s(self)  end

#rxoObject



146
# File 'lib/cx/mongo_query/operators.rb', line 146

def rxo; CX::Mongo::Query.rxo(self)    end