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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 242d69bca5c508a8c10cd136988de4df41103439
4
- data.tar.gz: 3c3df3c9e8cfe4f64e444c6056c0490e0f531a19
3
+ metadata.gz: 71cc0d05d22a72685dd8fe8a97d36277fad291f3
4
+ data.tar.gz: a13ed393bbc6d29ca068f54998aff7d4bb5ab103
5
5
  SHA512:
6
- metadata.gz: 77db214a88ae278cd382b936ad93b777a3947cb130663dcac8d2fe646cf5c8216eb11a1066e745e4fdf33fcf75e478cea3aa64e1d1c8c424da20ce086e7e9923
7
- data.tar.gz: 6f715005e65fbf393ccbf0f5442613e12e3552816dd622f061b6106afa49afd63d24d6e2c399f044f858a971a5873693410c49c4728a7237e5222b7a140fad00
6
+ metadata.gz: 85f9631f348f3b8b976c15e17526c784846b89a49ac241f15d7a6977b46fc6be5033f86e45c5c43fd6be8fd008a989346c7fdfb743401382d9ebfc2bb3b78f52
7
+ data.tar.gz: eec62992ab70374e3ae5db4d6c5d1ec759efbbe51ba96f8726042c8c4fbfdf56342f2ae5b15262a38d333ea65835c583b73e13e70973e25b9470e0b50504a465
@@ -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
- response.results = response.reject{|k,v| %w(result_code result_message result_output).include?(k) }.values
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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveCampaign
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_campaign
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson