Class: Roseflow::Pinecone::Vector::Filter::FilterContract

Inherits:
Dry::Validation::Contract
  • Object
show all
Defined in:
lib/roseflow/pinecone/vectors/filter.rb

Instance Method Summary collapse

Instance Method Details

#to_filter(input) ⇒ Object



52
53
54
55
# File 'lib/roseflow/pinecone/vectors/filter.rb', line 52

def to_filter(input)
  return false unless input.is_a?(Hash)
  return Filter.new(input)
end