Class: Lotus::Model::Adapters::Auth0::LuceneQuery::Where
- Inherits:
-
Object
- Object
- Lotus::Model::Adapters::Auth0::LuceneQuery::Where
- Defined in:
- lib/lotus/model/adapters/auth0/lucene_query.rb
Instance Attribute Summary collapse
-
#condition ⇒ Object
Returns the value of attribute condition.
Instance Method Summary collapse
-
#initialize(_condition) ⇒ Where
constructor
A new instance of Where.
- #key ⇒ Object
- #to_s ⇒ Object
- #type ⇒ Object
- #value ⇒ Object
Constructor Details
#initialize(_condition) ⇒ Where
Returns a new instance of Where.
12 13 14 |
# File 'lib/lotus/model/adapters/auth0/lucene_query.rb', line 12 def initialize(_condition) @condition = _condition end |
Instance Attribute Details
#condition ⇒ Object
Returns the value of attribute condition.
10 11 12 |
# File 'lib/lotus/model/adapters/auth0/lucene_query.rb', line 10 def condition @condition end |
Instance Method Details
#key ⇒ Object
16 17 18 |
# File 'lib/lotus/model/adapters/auth0/lucene_query.rb', line 16 def key condition.keys.first end |
#to_s ⇒ Object
28 29 30 |
# File 'lib/lotus/model/adapters/auth0/lucene_query.rb', line 28 def to_s "#{key}:#{value}" end |
#type ⇒ Object
24 25 26 |
# File 'lib/lotus/model/adapters/auth0/lucene_query.rb', line 24 def type :where end |
#value ⇒ Object
20 21 22 |
# File 'lib/lotus/model/adapters/auth0/lucene_query.rb', line 20 def value condition.values.first end |