Skip to content

Commit

Permalink
improvement: added not like/contains filters
Browse files Browse the repository at this point in the history
  • Loading branch information
emajo committed May 27, 2024
2 parents d106980 + 45f5fd2 commit 2779fc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fattureincloud_ruby_sdk/filter/operator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class Operator
LIKE = 'like'.freeze
# Contains operator.
CONTAINS = 'contains'.freeze
# Not Like operator.
NOT_LIKE = 'not like'.freeze
# Not Contains operator.
NOT_CONTAINS = 'not contains'.freeze
# Starts With operator.
STARTS_WITH = 'starts with'.freeze
# Ends With operator.
Expand Down
2 changes: 2 additions & 0 deletions spec/filter/operator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
expect(FattureInCloud_Ruby_Sdk::Operator::IS_NOT).to eq('is not')
expect(FattureInCloud_Ruby_Sdk::Operator::LIKE).to eq('like')
expect(FattureInCloud_Ruby_Sdk::Operator::CONTAINS).to eq('contains')
expect(FattureInCloud_Ruby_Sdk::Operator::NOT_LIKE).to eq('not like')
expect(FattureInCloud_Ruby_Sdk::Operator::NOT_CONTAINS).to eq('not contains')
expect(FattureInCloud_Ruby_Sdk::Operator::STARTS_WITH).to eq('starts with')
expect(FattureInCloud_Ruby_Sdk::Operator::ENDS_WITH).to eq('ends with')
end
Expand Down

0 comments on commit 2779fc8

Please sign in to comment.