Sha256: 4992d842eb8fb66d32445449d3df16c3c7f636f11ec2b489d7a94a450b860abc
Contents?: true
Size: 952 Bytes
Versions: 10
Compression:
Stored size: 952 Bytes
Contents
module Datarank class Client module Fizzle # Validate a fizzle query's syntax # # @param options [String] :q Fizzle Query # @note Fizzle query requires 'fizzle: ' be prepended to query def fizzle_validate query post "/fizzle/validate", {q: query} end # Test a fizzle query against a given set of comments # # @param query [String] :q Fizzle Query # @param query [Array< Hash{ comment: String } >] :comments Array of comments to match against # @note Fizzle query requires 'fizzle: ' be prepended to query def fizzle_match query post "/fizzle/match", query end # Filter a 100,000 comment sample with a fizzle query # # @param query [String] :q Fizzle Query # @note Fizzle query requires 'fizzle: ' be prepended to query def fizzle_search query post "/fizzle/search", {q: query} end end end end
Version data entries
10 entries across 10 versions & 2 rubygems