Class: ROM::DynamoDB::Dataset::WhereClause::Operand
- Inherits:
-
Object
- Object
- ROM::DynamoDB::Dataset::WhereClause::Operand
- Defined in:
- lib/rom/dynamodb/dataset/where_clause.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#operand ⇒ Object
readonly
Returns the value of attribute operand.
-
#val ⇒ Object
readonly
Returns the value of attribute val.
Instance Method Summary collapse
- #<=>(op) ⇒ Object
-
#initialize(key:, val:) ⇒ Operand
constructor
A new instance of Operand.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
62 63 64 |
# File 'lib/rom/dynamodb/dataset/where_clause.rb', line 62 def key @key end |
#operand ⇒ Object (readonly)
Returns the value of attribute operand.
62 63 64 |
# File 'lib/rom/dynamodb/dataset/where_clause.rb', line 62 def operand @operand end |
#val ⇒ Object (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 |