Module: CoreExtensions::Arel::Nodes::SelectStatement

Defined in:
lib/core_extensions/arel/nodes/select_statement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#limit_byObject

Returns the value of attribute limit_by.



5
6
7
# File 'lib/core_extensions/arel/nodes/select_statement.rb', line 5

def limit_by
  @limit_by
end

#settingsObject

Returns the value of attribute settings.



5
6
7
# File 'lib/core_extensions/arel/nodes/select_statement.rb', line 5

def settings
  @settings
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
16
17
# File 'lib/core_extensions/arel/nodes/select_statement.rb', line 13

def eql?(other)
  super && 
    limit_by == other.limit_by &&
    settings == other.settings
end

#initialize(relation = nil) ⇒ Object



7
8
9
10
11
# File 'lib/core_extensions/arel/nodes/select_statement.rb', line 7

def initialize(relation = nil)
  super
  @limit_by = nil
  @settings = nil
end