Module: Influxer::WhereClause

Included in:
Relation
Defined in:
lib/influxer/metrics/relation/where_clause.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#loadObject



30
31
32
33
# File 'lib/influxer/metrics/relation/where_clause.rb', line 30

def load
  return if @null_relation
  super
end

#loaded?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/influxer/metrics/relation/where_clause.rb', line 21

def loaded?
  @null_relation || super
end

#noneObject



16
17
18
19
# File 'lib/influxer/metrics/relation/where_clause.rb', line 16

def none
  where_values << "(#{build_none})"
  self
end

#not(*args, **hargs) ⇒ Object



11
12
13
14
# File 'lib/influxer/metrics/relation/where_clause.rb', line 11

def not(*args, **hargs)
  build_where(args, hargs, true)
  self
end

#resetObject



25
26
27
28
# File 'lib/influxer/metrics/relation/where_clause.rb', line 25

def reset
  super
  @null_relation = false
end

#where(*args, **hargs) ⇒ Object

accepts hash or strings conditions



6
7
8
9
# File 'lib/influxer/metrics/relation/where_clause.rb', line 6

def where(*args, **hargs)
  build_where(args, hargs, false)
  self
end