module

Feed::Backend::Criteria::Form

Translates between the criteria backend's type-grouped params and three any/all/none buckets.

parse and format are inverses over the params parse produces -- i.e. every feed the form creates.

Note: the order is presentation only.

Constants

TYPES = {"keywords" => "keyword", "hashtags" => "hashtag", "mentions" => "mention"}

Class methods

format(params : Hash(String, JSON::Any)) : NamedTuple(any: String, all: String, none: String)

Formats params as the three form buckets.

Source
parse(any : String, all : String, none : String) : Hash(String, JSON::Any)

Parses the three form buckets into the backend's params.

Source
summarize(params : Hash(String, JSON::Any)) : Summary

Projects params into typed terms per selector and a total term count.

Source

Nested types