Sha256: 596268eefec8ff91e670b5f259e876d9f733e956e16a465be760722763b8aa4e

Contents?: true

Size: 563 Bytes

Versions: 6

Compression:

Stored size: 563 Bytes

Contents

module DynamoidAdvancedWhere
  module Nodes
    class GreaterThanNode < OperationNode
      self.operator = '>'
    end

    module Concerns
      module SupportsGreaterThan
        def gt(other_value)
          val = if respond_to?(:parse_right_hand_side)
                  parse_right_hand_side(other_value)
                else
                  other_value
                end

          GreaterThanNode.new(
            lh_operation: self,
            rh_operation: LiteralNode.new(val)
          )
        end
        alias > gt
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dynamoid_advanced_where-1.3.0 lib/dynamoid_advanced_where/nodes/greater_than_node.rb
dynamoid_advanced_where-1.2.0 lib/dynamoid_advanced_where/nodes/greater_than_node.rb
dynamoid_advanced_where-1.1.0 lib/dynamoid_advanced_where/nodes/greater_than_node.rb
dynamoid_advanced_where-1.0.1 lib/dynamoid_advanced_where/nodes/greater_than_node.rb
dynamoid_advanced_where-1.0.0 lib/dynamoid_advanced_where/nodes/greater_than_node.rb
dynamoid-advanced-where-1.0.0 lib/dynamoid_advanced_where/nodes/greater_than_node.rb