class DppmRestApi::Actions::RouteFilters
- DppmRestApi::Actions::RouteFilters
- Reference
- Object
Overview
A series of filters, which may be parsed from the current context. They currently allow filtering the #pkg_file attributes of DPPM::Prefix's Pkg, App, and Src.
Defined in:
actions/route_filters.crConstructors
Instance Method Summary
- #&(*args, **options)
- #&(*args, **options, &)
- #[](*args, **options)
- #[](*args, **options, &)
- #[]=(*args, **options)
- #[]?(*args, **options)
- #[]?(*args, **options, &)
-
#add(key : String, value : String) : Nil
Add a single value to the filters on the given key.
-
#add(key : String, values : Enumerable(String))
Add a series of values to the filters on the given key.
-
#apps_json(builder : JSON::Builder, keys : Enumerable(String))
build the JSON list of data from the package files of all apps that pass the filters.
-
#filters_allow?(pkg_file : DPPM::Prefix::PkgFile) : Bool
Return true if the given package file's attributes pass the filters
- #has_key?(*args, **options)
- #has_key?(*args, **options, &)
-
#pkgs_json(builder : JSON::Builder, keys : Enumerable(String))
build the JSON list of data from the package files of all pkgs that pass the filters.
-
#srcs_json(builder : JSON::Builder, keys : Enumerable(String))
build the JSON list of data from the package files of all srcs that pass the filters.
Constructor Detail
Instance Method Detail
Add a single value to the filters on the given key. If there are already some filters on this key, the original values are kept as well.
Add a series of values to the filters on the given key. If there are already some filters on this key, the original values are kept as well.
build the JSON list of data from the package files of all apps that pass the filters.
Return true if the given package file's attributes pass the filters
build the JSON list of data from the package files of all pkgs that pass the filters.
build the JSON list of data from the package files of all srcs that pass the filters.