Class: Exwiw::MongoQuery::Find
- Inherits:
-
Struct
- Object
- Struct
- Exwiw::MongoQuery::Find
- Defined in:
- lib/exwiw/mongo_query.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
Returns the value of attribute collection.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#primary_key ⇒ Object
Returns the value of attribute primary_key.
-
#projection ⇒ Object
Returns the value of attribute projection.
Instance Method Summary collapse
Instance Attribute Details
#collection ⇒ Object
Returns the value of attribute collection
5 6 7 |
# File 'lib/exwiw/mongo_query.rb', line 5 def collection @collection end |
#filter ⇒ Object
Returns the value of attribute filter
5 6 7 |
# File 'lib/exwiw/mongo_query.rb', line 5 def filter @filter end |
#primary_key ⇒ Object
Returns the value of attribute primary_key
5 6 7 |
# File 'lib/exwiw/mongo_query.rb', line 5 def primary_key @primary_key end |
#projection ⇒ Object
Returns the value of attribute projection
5 6 7 |
# File 'lib/exwiw/mongo_query.rb', line 5 def projection @projection end |
Instance Method Details
#to_h ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/exwiw/mongo_query.rb', line 6 def to_h { collection: collection, primary_key: primary_key, filter: filter, projection: projection, } end |