Module: ZendeskAPI::Conditions
- Included in:
- Automation, Trigger, View
- Defined in:
- lib/zendesk_api/resources.rb
Instance Method Summary collapse
- #add_all_condition(field, operator, value) ⇒ Object
- #add_any_condition(field, operator, value) ⇒ Object
- #all_conditions=(all_conditions) ⇒ Object
- #any_conditions=(any_conditions) ⇒ Object
Instance Method Details
#add_all_condition(field, operator, value) ⇒ Object
694 695 696 697 698 |
# File 'lib/zendesk_api/resources.rb', line 694 def add_all_condition(field, operator, value) self.conditions ||= {} self.conditions[:all] ||= [] self.conditions[:all] << {field: field, operator: operator, value: value} end |
#add_any_condition(field, operator, value) ⇒ Object
700 701 702 703 704 |
# File 'lib/zendesk_api/resources.rb', line 700 def add_any_condition(field, operator, value) self.conditions ||= {} self.conditions[:any] ||= [] self.conditions[:any] << {field: field, operator: operator, value: value} end |
#all_conditions=(all_conditions) ⇒ Object
684 685 686 687 |
# File 'lib/zendesk_api/resources.rb', line 684 def all_conditions=(all_conditions) self.conditions ||= {} self.conditions[:all] = all_conditions end |
#any_conditions=(any_conditions) ⇒ Object
689 690 691 692 |
# File 'lib/zendesk_api/resources.rb', line 689 def any_conditions=(any_conditions) self.conditions ||= {} self.conditions[:any] = any_conditions end |