Class: Influx::Flux::From

Inherits:
Object
  • Object
show all
Defined in:
lib/influx/flux/from.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:) ⇒ From

Returns a new instance of From.



8
9
10
# File 'lib/influx/flux/from.rb', line 8

def initialize(bucket:)
  @bucket = bucket
end

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket.



6
7
8
# File 'lib/influx/flux/from.rb', line 6

def bucket
  @bucket
end

Instance Method Details

#to_fluxObject



12
13
14
15
16
# File 'lib/influx/flux/from.rb', line 12

def to_flux
  <<~FLUX.chomp
    from(bucket: "#{@bucket}")
  FLUX
end