Class: RuboCop::Isucon::GDA::JoinOperand
- Inherits:
-
Object
- Object
- RuboCop::Isucon::GDA::JoinOperand
- Defined in:
- lib/rubocop/isucon/gda/join_operand.rb
Overview
response of Client#join_conditions
Instance Attribute Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Boolean
-
#initialize(table_name: nil, column_name: nil, as: nil, node: nil) ⇒ JoinOperand
constructor
A new instance of JoinOperand.
Constructor Details
#initialize(table_name: nil, column_name: nil, as: nil, node: nil) ⇒ JoinOperand
Returns a new instance of JoinOperand.
28 29 30 31 32 33 |
# File 'lib/rubocop/isucon/gda/join_operand.rb', line 28 def initialize(table_name: nil, column_name: nil, as: nil, node: nil) @table_name = table_name @column_name = column_name @as = as @node = node end |
Instance Attribute Details
#as ⇒ String
18 19 20 |
# File 'lib/rubocop/isucon/gda/join_operand.rb', line 18 def as @as end |
#column_name ⇒ String
14 15 16 |
# File 'lib/rubocop/isucon/gda/join_operand.rb', line 14 def column_name @column_name end |
#node ⇒ GDA::Nodes::Expr
22 23 24 |
# File 'lib/rubocop/isucon/gda/join_operand.rb', line 22 def node @node end |
#table_name ⇒ String
10 11 12 |
# File 'lib/rubocop/isucon/gda/join_operand.rb', line 10 def table_name @table_name end |
Instance Method Details
#==(other) ⇒ Boolean
37 38 39 40 41 42 |
# File 'lib/rubocop/isucon/gda/join_operand.rb', line 37 def ==(other) other.is_a?(JoinOperand) && table_name == other.table_name && column_name == other.column_name && as == other.as end |