Module: Stingray::ControlApi::CatalogRuleMethods
- Includes:
- SoapHelperMethods
- Defined in:
- lib/stingray/control_api/catalog_rule_methods.rb
Instance Method Summary
collapse
#_build_many_keyed_string_arrays, #_build_string_array, #_make_names_soap_request, #_make_names_values_soap_request, #_make_soap_request
Instance Method Details
#_custom_add_rule(rule_configs) ⇒ Object
16
17
18
19
|
# File 'lib/stingray/control_api/catalog_rule_methods.rb', line 16
def _custom_add_rule(rule_configs)
body = _build_many_keyed_string_arrays(rule_configs, :names, :texts)
_make_soap_request('Catalog.Rule', :add_rule, body)
end
|
#_custom_check_syntax(*rule_texts) ⇒ Object
21
22
23
24
25
|
# File 'lib/stingray/control_api/catalog_rule_methods.rb', line 21
def _custom_check_syntax(*rule_texts)
raise ArgumentError.new('No rules given!') if rule_texts.empty?
body = _build_string_array(rule_texts, :rule_text)
_make_soap_request('Catalog.Rule', :check_syntax, body)
end
|
#_custom_set_rule_text(rule_configs) ⇒ Object
27
28
29
30
|
# File 'lib/stingray/control_api/catalog_rule_methods.rb', line 27
def _custom_set_rule_text(rule_configs)
body = _build_many_keyed_string_arrays(rule_configs, :names, :text)
_make_soap_request('Catalog.Rule', :set_rule_text, body)
end
|