Class: Arel::Nodes::Overlaps

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Overlaps.



19
20
21
22
23
24
# File 'lib/arel/extensions/overlaps.rb', line 19

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.



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

def end1
  @end1
end

#end2Object (readonly)

Returns the value of attribute end2.



17
18
19
# File 'lib/arel/extensions/overlaps.rb', line 17

def end2
  @end2
end

#start1Object (readonly)

Returns the value of attribute start1.



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

def start1
  @start1
end

#start2Object (readonly)

Returns the value of attribute start2.



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

def start2
  @start2
end