Class: Apiwork::Adapter::Standard::Capability::Sorting::APIBuilder
- Inherits:
-
Capability::API::Base
- Object
- Builder::API::Base
- Capability::API::Base
- Apiwork::Adapter::Standard::Capability::Sorting::APIBuilder
- Defined in:
- lib/apiwork/adapter/standard/capability/sorting/api_builder.rb
Instance Attribute Summary
Attributes inherited from Capability::API::Base
Attributes inherited from Builder::API::Base
Instance Method Summary collapse
Methods inherited from Capability::API::Base
Methods inherited from Builder::API::Base
#enum, #enum?, #initialize, #object, #type?, #union
Constructor Details
This class inherits a constructor from Apiwork::Adapter::Capability::API::Base
Instance Method Details
#build ⇒ Object
9 10 11 12 13 |
# File 'lib/apiwork/adapter/standard/capability/sorting/api_builder.rb', line 9 def build return unless scope.sortable? enum :sort_direction, values: %w[asc desc] end |