eloqua 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eloqua (1.1.0)
4
+ eloqua (1.1.2)
5
5
  activemodel
6
6
  activesupport (>= 3.0.6)
7
7
  builder
@@ -17,7 +17,7 @@ module Eloqua
17
17
  # The namespace for Eloqua Array objects
18
18
  XML_NS_ARRAY = 'http://schemas.microsoft.com/2003/10/Serialization/Arrays'
19
19
 
20
- # WSDLs are from 3-30-2011
20
+ # WSDLs are from 7-16-2012
21
21
  WSDL = {
22
22
  :service => File.dirname(__FILE__) + '/wsdl/service.wsdl',
23
23
  :data => File.dirname(__FILE__) + '/wsdl/data.wsdl',
@@ -32,6 +32,14 @@ module Eloqua
32
32
  results = request(:list_members_in_step_by_status, xml_query)
33
33
  end
34
34
 
35
+ def set_member_status(arrayOfMember, status)
36
+ xml_query = builder do |xml|
37
+ xml.template(:member_array, arrayOfMember)
38
+ xml.tag!(:status, status)
39
+ end
40
+ results = request(:set_member_status, xml_query)
41
+ end
42
+
35
43
  def request(*args)
36
44
  Eloqua::Api.request(:action, *args)
37
45
  end
@@ -8,7 +8,7 @@ module Eloqua
8
8
  # the main builder class
9
9
  class Xml < ::Builder::XmlMarkup
10
10
 
11
- include Eloqua::Builder::Templates
11
+ include ::Eloqua::Builder::Templates
12
12
 
13
13
  # XML Templates
14
14
 
@@ -38,6 +38,12 @@ module Eloqua
38
38
  end
39
39
  end
40
40
 
41
+ define_builder_template :member_array do |xml, array|
42
+ array.each do |element|
43
+ xml.array(:int, element)
44
+ end
45
+ end
46
+
41
47
  # For use with add/remove membership
42
48
  define_builder_template :object do |xml, object_type, type, id|
43
49
  xml.tag!(object_type) do
@@ -115,7 +121,7 @@ module Eloqua
115
121
 
116
122
  # Extend to allow default namespace
117
123
  def method_missing(sym, *args, &block)
118
- if(@namespace && !args.first.kind_of?(Symbol))
124
+ if(@namespace && !args.first.kind_of?(::Symbol))
119
125
  args.unshift(sym.to_sym)
120
126
  sym = @namespace
121
127
  end
@@ -1,3 +1,3 @@
1
1
  module Eloqua
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eloqua
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: