Class: DynamoidAdvancedWhere::Nodes::NumberAttributeNode
- Includes:
- Concerns::SupportsGreaterThan
- Defined in:
- lib/dynamoid_advanced_where/nodes/field_node.rb
Constant Summary collapse
- ALLOWED_COMPARISON_TYPES =
[ Numeric, ].freeze
Instance Attribute Summary
Attributes inherited from FieldNode
Attributes inherited from BaseNode
Instance Method Summary collapse
Methods included from Concerns::SupportsGreaterThan
Methods inherited from FieldNode
create_node, #expression_attribute_names, #expression_attribute_values, #initialize, #to_expression
Methods included from Concerns::SupportsExistance
Methods included from Concerns::SupportsEquality
Methods inherited from BaseNode
#expression_attribute_names, #expression_attribute_values
Constructor Details
This class inherits a constructor from DynamoidAdvancedWhere::Nodes::FieldNode
Instance Method Details
#parse_right_hand_side(val) ⇒ Object
82 83 84 85 86 |
# File 'lib/dynamoid_advanced_where/nodes/field_node.rb', line 82 def parse_right_hand_side(val) raise ArgumentError, "unable to compare number to `#{val.class}`" unless ALLOWED_COMPARISON_TYPES.detect { |k| val.is_a?(k) } val end |