Class: Arel::Nodes::Overlaps

Inherits:
Node
  • Object
show all
Defined in:
lib/arel/extensions/overlaps.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_sql_and_binds

Constructor Details

#initialize(start1, end1, start2, end2) ⇒ Overlaps

Returns a new instance of Overlaps.



13
14
15
16
17
18
# File 'lib/arel/extensions/overlaps.rb', line 13

def initialize(start1, end1, start2, end2)
  @start1 = start1
  @end1 = end1
  @start2 = start2
  @end2 = end2
end

Instance Attribute Details

#end1Object (readonly)

Returns the value of attribute end1.



9
10
11
# File 'lib/arel/extensions/overlaps.rb', line 9

def end1
  @end1
end

#end2Object (readonly)

Returns the value of attribute end2.



11
12
13
# File 'lib/arel/extensions/overlaps.rb', line 11

def end2
  @end2
end

#start1Object (readonly)

Returns the value of attribute start1.



8
9
10
# File 'lib/arel/extensions/overlaps.rb', line 8

def start1
  @start1
end

#start2Object (readonly)

Returns the value of attribute start2.



10
11
12
# File 'lib/arel/extensions/overlaps.rb', line 10

def start2
  @start2
end