Class: Influx::Flux::From
- Inherits:
-
Object
- Object
- Influx::Flux::From
- Defined in:
- lib/influx/flux/from.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
Instance Method Summary collapse
-
#initialize(bucket:) ⇒ From
constructor
A new instance of From.
- #to_flux ⇒ Object
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
#bucket ⇒ Object
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_flux ⇒ Object
12 13 14 15 16 |
# File 'lib/influx/flux/from.rb', line 12 def to_flux <<~FLUX.chomp from(bucket: "#{@bucket}") FLUX end |