Class: InfluxDB2::WriteApi::BatchItemKey
- Inherits:
-
Object
- Object
- InfluxDB2::WriteApi::BatchItemKey
- Defined in:
- lib/influxdb2/client/write_api.rb
Overview
Key for batch item
Instance Attribute Summary collapse
-
#bucket ⇒ Object
readonly
Returns the value of attribute bucket.
-
#org ⇒ Object
readonly
Returns the value of attribute org.
-
#precision ⇒ Object
readonly
Returns the value of attribute precision.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(bucket, org, precision = DEFAULT_WRITE_PRECISION) ⇒ BatchItemKey
constructor
A new instance of BatchItemKey.
Constructor Details
#initialize(bucket, org, precision = DEFAULT_WRITE_PRECISION) ⇒ BatchItemKey
Returns a new instance of BatchItemKey.
228 229 230 231 232 |
# File 'lib/influxdb2/client/write_api.rb', line 228 def initialize(bucket, org, precision = DEFAULT_WRITE_PRECISION) @bucket = bucket @org = org @precision = precision end |
Instance Attribute Details
#bucket ⇒ Object (readonly)
Returns the value of attribute bucket.
233 234 235 |
# File 'lib/influxdb2/client/write_api.rb', line 233 def bucket @bucket end |
#org ⇒ Object (readonly)
Returns the value of attribute org.
233 234 235 |
# File 'lib/influxdb2/client/write_api.rb', line 233 def org @org end |
#precision ⇒ Object (readonly)
Returns the value of attribute precision.
233 234 235 |
# File 'lib/influxdb2/client/write_api.rb', line 233 def precision @precision end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
235 236 237 |
# File 'lib/influxdb2/client/write_api.rb', line 235 def ==(other) @bucket == other.bucket && @org == other.org && @precision == other.precision end |
#hash ⇒ Object
241 242 243 |
# File 'lib/influxdb2/client/write_api.rb', line 241 def hash @bucket.hash ^ @org.hash ^ @precision.hash # XOR end |