infusionsoft-api 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,12 +3,23 @@ module Infusionsoft
3
3
  module Model
4
4
  class ContactGroup < Infusionsoft::Api::Model::Base
5
5
 
6
+ def all(query = {}, page_number = 0)
7
+ results = super(query, page_number)
8
+ results.map{|x|{
9
+ 'FirstName' => x['Contact.FirstName'],
10
+ 'LastName' => x['Contact.LastName'],
11
+ 'Company' => x['Contact.Company'],
12
+ 'Email' => x['Contact.Email'],
13
+ 'ContactGroup' => x['ContactGroup'],
14
+ }}
15
+ end
16
+
6
17
  def table_name
7
18
  'ContactGroupAssign'
8
19
  end
9
20
 
10
21
  def fields
11
- [:ContactGroup, :'Contact.FirstName', :'Contact.LastName', :'Contact.Company', :'Contact.Email']
22
+ [:'ContactGroup', :'Contact.FirstName', :'Contact.LastName', :'Contact.Company', :'Contact.Email']
12
23
  end
13
24
 
14
25
  end
@@ -1,5 +1,5 @@
1
1
  module Infusionsoft
2
2
  module Api
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infusionsoft-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: -3359927660206814433
81
+ hash: 3857265908780957625
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: -3359927660206814433
90
+ hash: 3857265908780957625
91
91
  requirements: []
92
92
  rubyforge_project:
93
93
  rubygems_version: 1.8.23