Class: SearchQueryBuilder
- Inherits:
-
Object
- Object
- SearchQueryBuilder
- Defined in:
- lib/apl-library/search_query_builder.rb
Constant Summary collapse
- NULL_VALUE =
'NULL'- NOTNULL_VALUE =
'NOTNULL'- RANGE =
'..'- DATE_FORMAT =
'%Y-%m-%d'- DATE_TIME_FORMAT =
'%Y-%m-%dT%H:%M:%S'- DATE_TIME_DELIMITER =
'T'
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
- #construct ⇒ Object
-
#initialize(params) ⇒ SearchQueryBuilder
constructor
A new instance of SearchQueryBuilder.
Constructor Details
#initialize(params) ⇒ SearchQueryBuilder
Returns a new instance of SearchQueryBuilder.
15 16 17 18 |
# File 'lib/apl-library/search_query_builder.rb', line 15 def initialize params @params = params @conditions = [] end |
Instance Attribute Details
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
6 7 8 |
# File 'lib/apl-library/search_query_builder.rb', line 6 def conditions @conditions end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'lib/apl-library/search_query_builder.rb', line 5 def params @params end |
Instance Method Details
#construct ⇒ Object
20 21 22 23 24 |
# File 'lib/apl-library/search_query_builder.rb', line 20 def construct @conditions = [] construct_condition return @conditions.join(' and ') end |