34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/etapi/calls/subscriber.rb', line 34
def subscriber_edit(*args)
options = args.
@subscriber_id = options[:subscriber_id]
@values = options[:values] ||= {}
@account_id = options[:account_id] ||= ""
required_options = ["subscriber_id"]
return false unless check_required(required_options)
@parameters = {
"search_type" => "subid",
"search_value" => @subscriber_id,
"search_value2" => "",
"values" => @values
}
response = build_call("subscriber", "edit")
response.xpath("//subscriber_description").text == @subscriber_id.to_s rescue false
end
|