Class: ROM::DynamoDB::Dataset::WhereClause::Operand

Inherits:
Object
  • Object
show all
Defined in:
lib/rom/dynamodb/dataset/where_clause.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, val:) ⇒ Operand

Returns a new instance of Operand.



64
65
66
67
# File 'lib/rom/dynamodb/dataset/where_clause.rb', line 64

def initialize(key:, val:)
  @key = key
  @val = val
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



62
63
64
# File 'lib/rom/dynamodb/dataset/where_clause.rb', line 62

def key
  @key
end

#operandObject (readonly)

Returns the value of attribute operand.



62
63
64
# File 'lib/rom/dynamodb/dataset/where_clause.rb', line 62

def operand
  @operand
end

#valObject (readonly)

Returns the value of attribute val.



62
63
64
# File 'lib/rom/dynamodb/dataset/where_clause.rb', line 62

def val
  @val
end

Instance Method Details

#<=>(op) ⇒ Object



77
78
79
# File 'lib/rom/dynamodb/dataset/where_clause.rb', line 77

def <=>(op)
  val <=> op.val
end