active_campaign 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_campaign.rb +6 -1
- data/lib/active_campaign/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71cc0d05d22a72685dd8fe8a97d36277fad291f3
|
4
|
+
data.tar.gz: a13ed393bbc6d29ca068f54998aff7d4bb5ab103
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85f9631f348f3b8b976c15e17526c784846b89a49ac241f15d7a6977b46fc6be5033f86e45c5c43fd6be8fd008a989346c7fdfb743401382d9ebfc2bb3b78f52
|
7
|
+
data.tar.gz: eec62992ab70374e3ae5db4d6c5d1ec759efbbe51ba96f8726042c8c4fbfdf56342f2ae5b15262a38d333ea65835c583b73e13e70973e25b9470e0b50504a465
|
data/lib/active_campaign.rb
CHANGED
@@ -25,7 +25,12 @@ module ActiveCampaign
|
|
25
25
|
def method_missing(method, *args, &block)
|
26
26
|
return super unless new.respond_to?(method)
|
27
27
|
response = new.send(method, *args, &block)
|
28
|
-
|
28
|
+
results = response.reject{|k,v| %w(result_code result_message result_output).include?(k) }
|
29
|
+
response.results = results.values
|
30
|
+
results.keys.each do |key|
|
31
|
+
response.delete(key)
|
32
|
+
end
|
33
|
+
|
29
34
|
response
|
30
35
|
end
|
31
36
|
|