Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: added not like/contains filters #33

Merged
merged 1 commit into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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