Class: RuboCop::Isucon::GDA::WhereOperand
- Inherits:
-
Object
- Object
- RuboCop::Isucon::GDA::WhereOperand
- Defined in:
- lib/rubocop/isucon/gda/where_operand.rb
Overview
response of Client#where_conditions
Instance Attribute Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Boolean
-
#initialize(value: nil, node: nil) ⇒ WhereOperand
constructor
A new instance of WhereOperand.
Constructor Details
#initialize(value: nil, node: nil) ⇒ WhereOperand
Returns a new instance of WhereOperand.
18 19 20 21 |
# File 'lib/rubocop/isucon/gda/where_operand.rb', line 18 def initialize(value: nil, node: nil) @value = value @node = node end |
Instance Attribute Details
#node ⇒ GDA::Nodes::Expr
14 15 16 |
# File 'lib/rubocop/isucon/gda/where_operand.rb', line 14 def node @node end |
#value ⇒ String
10 11 12 |
# File 'lib/rubocop/isucon/gda/where_operand.rb', line 10 def value @value end |
Instance Method Details
#==(other) ⇒ Boolean
25 26 27 28 |
# File 'lib/rubocop/isucon/gda/where_operand.rb', line 25 def ==(other) other.is_a?(WhereOperand) && value == other.value end |