Module: Thorderbolt
- Defined in:
- lib/thorderbolt.rb,
lib/thorderbolt/version.rb,
lib/thorderbolt/exceptions.rb,
lib/thorderbolt/range_builder.rb,
lib/thorderbolt/params_extractor.rb,
lib/thorderbolt/base_query_builder.rb,
lib/thorderbolt/order_query_builder.rb,
lib/thorderbolt/order_any_query_builder.rb
Overview
Active Record customer ordering
Defined Under Namespace
Classes: BaseQueryBuilder, OrderAnyQueryBuilder, OrderQueryBuilder, ParamsExtractor, RangeBuilder
Constant Summary collapse
- VERSION =
'0.1.1'
- ThorderboltError =
Class.new(StandardError)
- ParamsParsingError =
Class.new(ThorderboltError)
Instance Method Summary collapse
Instance Method Details
#order_as(hash) ⇒ Object
13 14 15 |
# File 'lib/thorderbolt.rb', line 13 def order_as(hash) order_with_builder(hash, OrderQueryBuilder) end |
#order_as_any(hash) ⇒ Object
17 18 19 |
# File 'lib/thorderbolt.rb', line 17 def order_as_any(hash) order_with_builder(hash, OrderAnyQueryBuilder) end |