Class: Influxdb::Arel::Nodes::Attribute

Inherits:
Unary show all
Includes:
Extensions::AliasPredication, Extensions::Expressions, Extensions::Math, Extensions::Predications
Defined in:
lib/influxdb/arel/nodes/attribute.rb

Constant Summary

Constants inherited from Node

Node::ENTENSIONS

Instance Attribute Summary

Attributes inherited from Unary

#expr

Instance Method Summary collapse

Methods included from Extensions::Math

#*, #+, #-, #/

Methods included from Extensions::AliasPredication

#as

Methods included from Extensions::Predications

#does_not_match, #does_not_match_all, #does_not_match_any, #eq, #eq_all, #eq_any, #gt, #gt_all, #gt_any, #gteq, #gteq_all, #gteq_any, #in, #lt, #lt_all, #lt_any, #lteq, #lteq_all, #lteq_any, #matches, #matches_all, #matches_any, #not_eq, #not_eq_all, #not_eq_any

Methods included from Extensions::Expressions

#bottom, #count, #derivative, #difference, #distinct, #first, #histogram, #last, #max, #mean, #median, #min, #mode, #percentile, #stddev, #sum, #top

Methods inherited from Unary

#eql?, #hash, #initialize, #initialize_copy

Methods inherited from Node

#extend, #to_sql

Methods included from Extensions::BooleanPredications

#and, #or

Constructor Details

This class inherits a constructor from Influxdb::Arel::Nodes::Unary

Instance Method Details

#sequence_number?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/influxdb/arel/nodes/attribute.rb', line 14

def sequence_number?
  value.to_s == 'sequence_number'
end

#time?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/influxdb/arel/nodes/attribute.rb', line 10

def time?
  value.to_s == 'time'
end