moxiworks_platform 0.13.11 → 0.13.12
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.
- checksums.yaml +4 -4
- data/lib/moxiworks_platform/action_log.rb +4 -0
- data/lib/moxiworks_platform/agent.rb +4 -0
- data/lib/moxiworks_platform/buyer_transaction.rb +4 -0
- data/lib/moxiworks_platform/company.rb +4 -0
- data/lib/moxiworks_platform/contact.rb +4 -0
- data/lib/moxiworks_platform/email_campaign.rb +4 -0
- data/lib/moxiworks_platform/event.rb +4 -0
- data/lib/moxiworks_platform/gallery.rb +4 -0
- data/lib/moxiworks_platform/group.rb +4 -0
- data/lib/moxiworks_platform/moxi_response_array.rb +6 -0
- data/lib/moxiworks_platform/office.rb +4 -0
- data/lib/moxiworks_platform/presentation_log.rb +4 -0
- data/lib/moxiworks_platform/seller_transaction.rb +4 -0
- data/lib/moxiworks_platform/task.rb +4 -0
- data/lib/moxiworks_platform/team.rb +4 -0
- data/lib/moxiworks_platform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eed5e9e30c5f49f38ec3131bfbb12e42c056c10
|
4
|
+
data.tar.gz: 4faeef74100f85cde8ebb1a08409d150b33e92c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dca294ba3d30a195c7ec8c512f2452fba4800ad5966e8d911674a29f7f5bf8aeeae40958bb308111e5ac1c1df52d5a2f686479c28d60b624d97a8b95a34d64b9
|
7
|
+
data.tar.gz: 4724c6b82fc4e67a8e478ef9da6c04cb4a14cde9aa62337a209af88b16bf57c08250f551acef690ac60e0115762a6cdc16cea52dcf1fc58480cc73803c6f42fd
|
@@ -85,6 +85,10 @@ module MoxiworksPlatform
|
|
85
85
|
results.headers = response.headers
|
86
86
|
self.check_for_error_in_response(response)
|
87
87
|
json = JSON.parse(response)
|
88
|
+
|
89
|
+
results.page_number = 1
|
90
|
+
results.total_pages = 1
|
91
|
+
|
88
92
|
json['actions'].each do |r|
|
89
93
|
results << MoxiworksPlatform::ActionLog.new(r) unless r.nil? or r.empty?
|
90
94
|
end
|
@@ -280,6 +280,10 @@ module MoxiworksPlatform
|
|
280
280
|
results.headers = response.headers
|
281
281
|
self.check_for_error_in_response(response)
|
282
282
|
json = JSON.parse(response)
|
283
|
+
|
284
|
+
results.page_number = json['page_number'] if(json.is_a?(Hash) && json['page_number'])
|
285
|
+
results.total_pages = json['total_pages'] if(json.is_a?(Hash) && json['total_pages'])
|
286
|
+
|
283
287
|
json['agents'].each do |r|
|
284
288
|
results << MoxiworksPlatform::Agent.new(r) unless r.nil? or r.empty?
|
285
289
|
end
|
@@ -412,6 +412,10 @@ module MoxiworksPlatform
|
|
412
412
|
results.headers = response.headers
|
413
413
|
self.check_for_error_in_response(response)
|
414
414
|
json = JSON.parse(response)
|
415
|
+
|
416
|
+
results.page_number = json['page_number'] if(json.is_a?(Hash) && json['page_number'])
|
417
|
+
results.total_pages = json['total_pages'] if(json.is_a?(Hash) && json['total_pages'])
|
418
|
+
|
415
419
|
json['transactions'].each do |r|
|
416
420
|
results << MoxiworksPlatform::BuyerTransaction.new(r) unless r.nil? or r.empty?
|
417
421
|
end
|
@@ -72,6 +72,10 @@ module MoxiworksPlatform
|
|
72
72
|
results.headers = response.headers
|
73
73
|
self.check_for_error_in_response(response)
|
74
74
|
json = JSON.parse(response)
|
75
|
+
|
76
|
+
results.page_number = 1
|
77
|
+
results.total_pages = 1
|
78
|
+
|
75
79
|
json.each do |r|
|
76
80
|
results << MoxiworksPlatform::Company.new(r) unless r.nil? or r.empty?
|
77
81
|
end
|
@@ -550,6 +550,10 @@ module MoxiworksPlatform
|
|
550
550
|
results.headers = response.headers
|
551
551
|
self.check_for_error_in_response(response)
|
552
552
|
json = JSON.parse(response)
|
553
|
+
|
554
|
+
results.page_number = json['page_number'] if(json.is_a?(Hash) && json['page_number'])
|
555
|
+
results.total_pages = json['total_pages'] if(json.is_a?(Hash) && json['total_pages'])
|
556
|
+
|
553
557
|
if json and json['contacts']
|
554
558
|
json['contacts'].each do |r|
|
555
559
|
results << MoxiworksPlatform::Contact.new(r) unless r.nil? or r.empty?
|
@@ -93,6 +93,10 @@ module MoxiworksPlatform
|
|
93
93
|
results.headers = response.headers
|
94
94
|
self.check_for_error_in_response(response)
|
95
95
|
json = JSON.parse(response)
|
96
|
+
|
97
|
+
results.page_number = 1
|
98
|
+
results.total_pages = 1
|
99
|
+
|
96
100
|
json.each do |r|
|
97
101
|
results << MoxiworksPlatform::EmailCampaign.new(r) unless r.nil? or r.empty?
|
98
102
|
end
|
@@ -170,6 +170,10 @@ module MoxiworksPlatform
|
|
170
170
|
results.headers = response.headers
|
171
171
|
self.check_for_error_in_response(response)
|
172
172
|
json = JSON.parse(response)
|
173
|
+
|
174
|
+
results.page_number = 1
|
175
|
+
results.total_pages = 1
|
176
|
+
|
173
177
|
json.each do |events_for_date|
|
174
178
|
events = []
|
175
179
|
events_for_date.each do |date, event_array|
|
@@ -94,6 +94,10 @@ module MoxiworksPlatform
|
|
94
94
|
self.check_for_error_in_response(response)
|
95
95
|
json = JSON.parse(response)
|
96
96
|
json = self.underscore_attribute_names json
|
97
|
+
|
98
|
+
results.page_number = 1
|
99
|
+
results.total_pages = 1
|
100
|
+
|
97
101
|
json['galleries'].each do |r|
|
98
102
|
results << MoxiworksPlatform::Gallery.new(r) unless r.nil? or r.empty?
|
99
103
|
end
|
@@ -78,6 +78,10 @@ module MoxiworksPlatform
|
|
78
78
|
results.headers = response.headers
|
79
79
|
self.check_for_error_in_response(response)
|
80
80
|
json = JSON.parse(response)
|
81
|
+
|
82
|
+
results.page_number = 1
|
83
|
+
results.total_pages = 1
|
84
|
+
|
81
85
|
json.each do |r|
|
82
86
|
results << MoxiworksPlatform::Group.new(r) unless r.nil? or r.empty?
|
83
87
|
end
|
@@ -163,6 +163,10 @@ module MoxiworksPlatform
|
|
163
163
|
self.check_for_error_in_response(response)
|
164
164
|
|
165
165
|
json = JSON.parse(response)
|
166
|
+
|
167
|
+
results.page_number = json['page_number'] if(json.is_a?(Hash) && json['page_number'])
|
168
|
+
results.total_pages = json['total_pages'] if(json.is_a?(Hash) && json['total_pages'])
|
169
|
+
|
166
170
|
json['offices'].each do |r|
|
167
171
|
results << MoxiworksPlatform::Office.new(r) unless r.nil? or r.empty?
|
168
172
|
end
|
@@ -145,6 +145,10 @@ module MoxiworksPlatform
|
|
145
145
|
results.headers = response.headers
|
146
146
|
self.check_for_error_in_response(response)
|
147
147
|
json = JSON.parse(response)
|
148
|
+
|
149
|
+
results.page_number = json['page_number'] if(json.is_a?(Hash) && json['page_number'])
|
150
|
+
results.total_pages = json['total_pages'] if(json.is_a?(Hash) && json['total_pages'])
|
151
|
+
|
148
152
|
json['presentations'].each do |r|
|
149
153
|
results << MoxiworksPlatform::PresentationLog.new(r) unless r.nil? or r.empty?
|
150
154
|
end
|
@@ -373,6 +373,10 @@ module MoxiworksPlatform
|
|
373
373
|
results.headers = response.headers
|
374
374
|
self.check_for_error_in_response(response)
|
375
375
|
json = JSON.parse(response)
|
376
|
+
|
377
|
+
results.page_number = json['page_number'] if(json.is_a?(Hash) && json['page_number'])
|
378
|
+
results.total_pages = json['total_pages'] if(json.is_a?(Hash) && json['total_pages'])
|
379
|
+
|
376
380
|
json['transactions'].each do |r|
|
377
381
|
results << MoxiworksPlatform::SellerTransaction.new(r) unless r.nil? or r.empty?
|
378
382
|
end
|
@@ -189,6 +189,10 @@ module MoxiworksPlatform
|
|
189
189
|
self.check_for_error_in_response(response)
|
190
190
|
results.headers = response.headers
|
191
191
|
json = JSON.parse(response)
|
192
|
+
|
193
|
+
results.page_number = json['page_number'] if(json.is_a?(Hash) && json['page_number'])
|
194
|
+
results.total_pages = json['total_pages'] if(json.is_a?(Hash) && json['total_pages'])
|
195
|
+
|
192
196
|
json['tasks'].each do |r|
|
193
197
|
results << MoxiworksPlatform::Task.new(r) unless r.nil? or r.empty?
|
194
198
|
end
|
@@ -195,6 +195,10 @@ module MoxiworksPlatform
|
|
195
195
|
self.check_for_error_in_response(response)
|
196
196
|
json = JSON.parse(response)
|
197
197
|
json = self.underscore_attribute_names json
|
198
|
+
|
199
|
+
results.page_number = 1
|
200
|
+
results.total_pages = 1
|
201
|
+
|
198
202
|
json.each do |r|
|
199
203
|
results << MoxiworksPlatform::Team.new(r) unless r.nil? or r.empty?
|
200
204
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moxiworks_platform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tres Wong-Godfrey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|