Class: Influx::Flux::Quantile
- Inherits:
-
Object
- Object
- Influx::Flux::Quantile
- Defined in:
- lib/influx/flux/quantile.rb
Instance Method Summary collapse
-
#initialize(q:, method:) ⇒ Quantile
constructor
A new instance of Quantile.
- #to_flux ⇒ Object
Constructor Details
#initialize(q:, method:) ⇒ Quantile
Returns a new instance of Quantile.
8 9 10 11 |
# File 'lib/influx/flux/quantile.rb', line 8 def initialize(q:, method:) @q = q @method = method end |
Instance Method Details
#to_flux ⇒ Object
13 14 15 16 17 |
# File 'lib/influx/flux/quantile.rb', line 13 def to_flux <<~FLUX.chomp |> quantile(q: #{@q}, method: "#{@method}") FLUX end |