mints 0.0.28 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/lib/client.rb +287 -385
  3. data/lib/contact/config/appointments.rb +201 -0
  4. data/lib/contact/config/config.rb +7 -0
  5. data/lib/contact/content/content.rb +7 -0
  6. data/lib/contact/content/conversations.rb +121 -0
  7. data/lib/contact/ecommerce/ecommerce.rb +12 -0
  8. data/lib/contact/ecommerce/order_items.rb +19 -0
  9. data/lib/contact/ecommerce/order_items_groups.rb +95 -0
  10. data/lib/contact/ecommerce/orders.rb +133 -0
  11. data/lib/contact.rb +54 -603
  12. data/lib/errors.rb +3 -1
  13. data/lib/generators/mints_assets_controller.rb +4 -1
  14. data/lib/generators/mints_contact_controller.rb +4 -1
  15. data/lib/generators/mints_files_generator.rb +16 -13
  16. data/lib/generators/mints_link.rb +7 -4
  17. data/lib/generators/mints_public_controller.rb +4 -1
  18. data/lib/generators/mints_user_controller.rb +3 -0
  19. data/lib/generators/short_link_controller.rb +4 -1
  20. data/lib/mints/controllers/admin_base_controller.rb +5 -3
  21. data/lib/mints/controllers/base_api_controller.rb +6 -4
  22. data/lib/mints/controllers/base_controller.rb +5 -3
  23. data/lib/mints/controllers/concerns/mints_clients.rb +4 -2
  24. data/lib/mints/controllers/concerns/read_config_file.rb +3 -1
  25. data/lib/mints/controllers/contact_api_controller.rb +12 -10
  26. data/lib/mints/controllers/public_api_controller.rb +10 -8
  27. data/lib/mints/controllers/user_api_controller.rb +11 -9
  28. data/lib/mints/helpers/contact_auth_helper.rb +3 -1
  29. data/lib/mints/helpers/mints_helper.rb +39 -38
  30. data/lib/mints/helpers/proxy_controllers_methods.rb +24 -24
  31. data/lib/mints/helpers/user_auth_helper.rb +5 -3
  32. data/lib/mints.rb +12 -10
  33. data/lib/pub.rb +35 -53
  34. data/lib/user/config/api_keys.rb +63 -61
  35. data/lib/user/config/appointments.rb +217 -215
  36. data/lib/user/config/attribute_groups.rb +74 -72
  37. data/lib/user/config/attributes.rb +83 -81
  38. data/lib/user/config/calendars.rb +88 -86
  39. data/lib/user/config/config.rb +31 -63
  40. data/lib/user/config/public_folders.rb +105 -104
  41. data/lib/user/config/relationships.rb +135 -132
  42. data/lib/user/config/roles.rb +76 -79
  43. data/lib/user/config/seeds.rb +52 -51
  44. data/lib/user/config/system_settings.rb +50 -49
  45. data/lib/user/config/tags.rb +57 -59
  46. data/lib/user/config/taxonomies.rb +115 -119
  47. data/lib/user/config/teams.rb +2 -0
  48. data/lib/user/config/users.rb +2 -0
  49. data/lib/user/contacts/contacts.rb +2 -0
  50. data/lib/user/content/assets.rb +3 -3
  51. data/lib/user/content/content.rb +224 -223
  52. data/lib/user/content/content_instances.rb +4 -2
  53. data/lib/user/content/content_templates.rb +2 -0
  54. data/lib/user/content/conversations.rb +2 -0
  55. data/lib/user/content/dam.rb +2 -0
  56. data/lib/user/content/forms.rb +2 -0
  57. data/lib/user/content/message_templates.rb +2 -0
  58. data/lib/user/content/messages.rb +2 -0
  59. data/lib/user/content/pages.rb +4 -2
  60. data/lib/user/content/stories.rb +3 -3
  61. data/lib/user/content/story_templates.rb +5 -3
  62. data/lib/user/content/story_versions.rb +2 -0
  63. data/lib/user/crm/companies.rb +3 -1
  64. data/lib/user/crm/contacts.rb +2 -0
  65. data/lib/user/crm/crm.rb +2 -0
  66. data/lib/user/crm/deals.rb +2 -0
  67. data/lib/user/crm/favorites.rb +2 -0
  68. data/lib/user/crm/segments.rb +2 -0
  69. data/lib/user/crm/users.rb +2 -0
  70. data/lib/user/crm/workflow_step_objects.rb +2 -0
  71. data/lib/user/crm/workflow_steps.rb +2 -0
  72. data/lib/user/crm/workflows.rb +2 -0
  73. data/lib/user/ecommerce/ecommerce.rb +2 -0
  74. data/lib/user/ecommerce/item_prices.rb +2 -0
  75. data/lib/user/ecommerce/locations.rb +2 -0
  76. data/lib/user/ecommerce/order_items_groups.rb +5 -2
  77. data/lib/user/ecommerce/order_statuses.rb +2 -0
  78. data/lib/user/ecommerce/orders.rb +4 -1
  79. data/lib/user/ecommerce/price_lists.rb +2 -0
  80. data/lib/user/ecommerce/product_templates.rb +3 -1
  81. data/lib/user/ecommerce/product_variations.rb +2 -0
  82. data/lib/user/ecommerce/products.rb +3 -1
  83. data/lib/user/ecommerce/skus.rb +2 -0
  84. data/lib/user/ecommerce/taxes.rb +2 -0
  85. data/lib/user/ecommerce/variant_options.rb +2 -0
  86. data/lib/user/ecommerce/variant_values.rb +2 -0
  87. data/lib/user/helpers/helpers.rb +2 -0
  88. data/lib/user/helpers/object_activities.rb +2 -0
  89. data/lib/user/helpers/object_folders.rb +2 -0
  90. data/lib/user/helpers/user_folders.rb +2 -0
  91. data/lib/user/marketing/marketing.rb +2 -0
  92. data/lib/user/profile/profile.rb +2 -0
  93. data/lib/user.rb +32 -41
  94. metadata +23 -16
  95. data/lib/user/config/importers.rb +0 -184
@@ -1,221 +1,223 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Appointments
2
- ##
3
- # == Appointments
4
- #
4
+ ##
5
+ # == Appointments
6
+ #
7
+
8
+ # === Get appointments.
9
+ # Get a collection of appointments.
10
+ #
11
+ # ==== Parameters
12
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
13
+ #
14
+ # ==== First Example
15
+ # @data = @mints_user.get_appointments
16
+ #
17
+ # ==== Second Example
18
+ # options = {
19
+ # fields: 'id'
20
+ # }
21
+ # @data = @mints_user.get_appointments(options)
22
+ def get_appointments(options = nil)
23
+ @client.raw('get', '/config/appointments', options)
24
+ end
25
+
26
+ # === Get appointment.
27
+ # Get an appointment info.
28
+ #
29
+ # ==== Parameters
30
+ # id:: (Integer) -- Appointment id.
31
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
32
+ #
33
+ # ==== First Example
34
+ # @data = @mints_user.get_appointment(1)
35
+ #
36
+ # ==== Second Example
37
+ # options = {
38
+ # fields: 'id'
39
+ # }
40
+ # @data = @mints_user.get_appointment(1, options)
41
+ def get_appointment(id, options = nil)
42
+ @client.raw('get', "/config/appointments/#{id}", options)
43
+ end
44
+
45
+ # === Create appointment.
46
+ # Create an appointment with data.
47
+ #
48
+ # ==== Parameters
49
+ # data:: (Hash) -- Data to be submitted.
50
+ #
51
+ # ==== Example
52
+ # data = {
53
+ # object_type: "contacts",
54
+ # object_id: 1,
55
+ # title: "New Appointment",
56
+ # start: "2021-09-06T20:29:16+00:00",
57
+ # end: "2022-09-06T20:29:16+00:00",
58
+ # attendee_id: 1
59
+ # }
60
+ # @data = @mints_user.create_appointment(data)
61
+ def create_appointment(data)
62
+ @client.raw('post', '/config/appointments', nil, data_transform(data))
63
+ end
64
+
65
+ # === Update appointment.
66
+ # Update an appointment info.
67
+ #
68
+ # ==== Parameters
69
+ # id:: (Integer) -- Appointment id.
70
+ # data:: (Hash) -- Data to be submitted.
71
+ #
72
+ # ==== Example
73
+ # data = {
74
+ # object_id: 2
75
+ # }
76
+ # @data = @mints_user.update_appointment(1, data)
77
+ def update_appointment(id, data)
78
+ @client.raw('put', "/config/appointments/#{id}", nil, data_transform(data))
79
+ end
80
+
81
+ # === Delete appointment.
82
+ # Delete an appointment.
83
+ #
84
+ # ==== Parameters
85
+ # id:: (Integer) -- Appointment id.
86
+ #
87
+ # ==== Example
88
+ # @data = @mints_user.delete_appointment(1)
89
+ def delete_appointment(id)
90
+ @client.raw('delete', "/config/appointments/#{id}")
91
+ end
92
+
93
+ # === Scheduled appointments.
94
+ # Schedule an appointment.
95
+ #
96
+ # ==== Parameters
97
+ # data:: (Hash) -- Data to be submitted.
98
+ #
99
+ # ==== Example
100
+ # data = {
101
+ # object_type: 'contacts',
102
+ # object_id: 1,
103
+ # start: '2021-09-06T20:29:16+00:00',
104
+ # end: '2022-09-06T20:29:16+00:00'
105
+ # }
106
+ # @data = @mints_user.scheduled_appointments(data)
107
+ def scheduled_appointments(data)
108
+ @client.raw('post', '/config/appointments/scheduled-appointments', nil, data_transform(data))
109
+ end
110
+
111
+ # === Reschedule appointment.
112
+ # Reschedule an appointment.
113
+ #
114
+ # ==== Parameters
115
+ # data:: (Hash) -- Data to be submitted.
116
+ #
117
+ # ==== Example
118
+ # data = {
119
+ # appointment_id: 2,
120
+ # start: '2021-09-06T20:29:16+00:00',
121
+ # end: '2022-09-06T20:29:16+00:00'
122
+ # }
123
+ # @data = @mints_user.reschedule_appointment(data)
124
+ def reschedule_appointment(data)
125
+ @client.raw('post', '/config/appointments/reschedule-appointment', nil, data_transform(data))
126
+ end
127
+
128
+ # === Attach invitee.
129
+ # Attach invitee.
130
+ #
131
+ # ==== Parameters
132
+ # data:: (Hash) -- Data to be submitted.
133
+ #
134
+ # ==== Example
135
+ # data = {
136
+ # appointment_id: 2,
137
+ # invitee_ids: [ 2 ]
138
+ # }
139
+ # @data = @mints_user.attach_invitee(data)
140
+ def attach_invitee(data)
141
+ @client.raw('post', '/config/appointments/attach-invitee', nil, data_transform(data))
142
+ end
5
143
 
6
- # === Get appointments.
7
- # Get a collection of appointments.
8
- #
9
- # ==== Parameters
10
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
11
- #
12
- # ==== First Example
13
- # @data = @mints_user.get_appointments
14
- #
15
- # ==== Second Example
16
- # options = {
17
- # fields: "id"
18
- # }
19
- # @data = @mints_user.get_appointments(options)
20
- def get_appointments(options = nil)
21
- @client.raw('get', "/config/appointments", options)
22
- end
23
-
24
- # === Get appointment.
25
- # Get an appointment info.
26
- #
27
- # ==== Parameters
28
- # id:: (Integer) -- Appointment id.
29
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
30
- #
31
- # ==== First Example
32
- # @data = @mints_user.get_appointment(1)
33
- #
34
- # ==== Second Example
35
- # options = {
36
- # fields: "id"
37
- # }
38
- # @data = @mints_user.get_appointment(1, options)
39
- def get_appointment(id, options = nil)
40
- @client.raw('get', "/config/appointments/#{id}", options)
41
- end
42
-
43
- # === Create appointment.
44
- # Create an appointment with data.
45
- #
46
- # ==== Parameters
47
- # data:: (Hash) -- Data to be submitted.
48
- #
49
- # ==== Example
50
- # data = {
51
- # "object_type": "contacts",
52
- # "object_id": 1,
53
- # title: "New Appointment",
54
- # "start": "2021-09-06T20:29:16+00:00",
55
- # "end": "2022-09-06T20:29:16+00:00",
56
- # "attendee_id": 1
57
- # }
58
- # @data = @mints_user.create_appointment(data)
59
- def create_appointment(data)
60
- @client.raw('post', "/config/appointments", nil, data_transform(data))
61
- end
144
+ # === Attach follower.
145
+ # Attach follower.
146
+ #
147
+ # ==== Parameters
148
+ # data:: (Hash) -- Data to be submitted.
149
+ #
150
+ # ==== Example
151
+ # data = {
152
+ # appointment_id: 2,
153
+ # follower_ids: [ 2 ]
154
+ # }
155
+ # @data = @mints_user.attach_follower(data)
156
+ def attach_follower(data)
157
+ @client.raw('post', '/config/appointments/attach-follower', nil, data_transform(data))
158
+ end
62
159
 
63
- # === Update appointment.
64
- # Update an appointment info.
65
- #
66
- # ==== Parameters
67
- # id:: (Integer) -- Appointment id.
68
- # data:: (Hash) -- Data to be submitted.
69
- #
70
- # ==== Example
71
- # data = {
72
- # "object_id": 2
73
- # }
74
- # @data = @mints_user.update_appointment(1, data)
75
- def update_appointment(id, data)
76
- @client.raw('put', "/config/appointments/#{id}", nil, data_transform(data))
77
- end
78
-
79
- # === Delete appointment.
80
- # Delete an appointment.
81
- #
82
- # ==== Parameters
83
- # id:: (Integer) -- Appointment id.
84
- #
85
- # ==== Example
86
- # @data = @mints_user.delete_appointment(1)
87
- def delete_appointment(id)
88
- @client.raw('delete', "/config/appointments/#{id}")
89
- end
160
+ # === Detach invitee.
161
+ # Detach invitee.
162
+ #
163
+ # ==== Parameters
164
+ # data:: (Hash) -- Data to be submitted.
165
+ #
166
+ # ==== Example
167
+ # data = {
168
+ # appointment_id: 2,
169
+ # invitee_ids: [ 2 ]
170
+ # }
171
+ # @data = @mints_user.detach_invitee(data)
172
+ def detach_invitee(data)
173
+ @client.raw('post', '/config/appointments/detach-invitee', nil, data_transform(data))
174
+ end
90
175
 
91
- # === Scheduled appointments.
92
- # Schedule an appointment.
93
- #
94
- # ==== Parameters
95
- # data:: (Hash) -- Data to be submitted.
96
- #
97
- # ==== Example
98
- # data = {
99
- # "object_type": "contacts",
100
- # "object_id": 1,
101
- # "start": "2021-09-06T20:29:16+00:00",
102
- # "end": "2022-09-06T20:29:16+00:00"
103
- # }
104
- # @data = @mints_user.scheduled_appointments(data)
105
- def scheduled_appointments(data)
106
- @client.raw('post', "/config/appointments/scheduled-appointments", nil, data_transform(data))
107
- end
108
-
109
- # === Reschedule appointment.
110
- # Reschedule an appointment.
111
- #
112
- # ==== Parameters
113
- # data:: (Hash) -- Data to be submitted.
114
- #
115
- # ==== Example
116
- # data = {
117
- # "appointment_id": 2,
118
- # "start": "2021-09-06T20:29:16+00:00",
119
- # "end": "2022-09-06T20:29:16+00:00"
120
- # }
121
- # @data = @mints_user.reschedule_appointment(data)
122
- def reschedule_appointment(data)
123
- @client.raw('post', "/config/appointments/reschedule-appointment", nil, data_transform(data))
124
- end
125
-
126
- # === Attach invitee.
127
- # Attach invitee.
128
- #
129
- # ==== Parameters
130
- # data:: (Hash) -- Data to be submitted.
131
- #
132
- # ==== Example
133
- # data = {
134
- # "appointment_id": 2,
135
- # "invitee_ids": [ 2 ]
136
- # }
137
- # @data = @mints_user.attach_invitee(data)
138
- def attach_invitee(data)
139
- @client.raw('post', "/config/appointments/attach-invitee", nil, data_transform(data))
140
- end
176
+ # === Detach follower.
177
+ # Detach follower.
178
+ #
179
+ # ==== Parameters
180
+ # data:: (Hash) -- Data to be submitted.
181
+ #
182
+ # ==== Example
183
+ # data = {
184
+ # appointment_id: 2,
185
+ # follower_ids: [ 2 ]
186
+ # }
187
+ # @data = @mints_user.detach_follower(data)
188
+ def detach_follower(data)
189
+ @client.raw('post', '/config/appointments/detach-follower', nil, data_transform(data))
190
+ end
141
191
 
142
- # === Attach follower.
143
- # Attach follower.
144
- #
145
- # ==== Parameters
146
- # data:: (Hash) -- Data to be submitted.
147
- #
148
- # ==== Example
149
- # data = {
150
- # "appointment_id": 2,
151
- # "follower_ids": [ 2 ]
152
- # }
153
- # @data = @mints_user.attach_follower(data)
154
- def attach_follower(data)
155
- @client.raw('post', "/config/appointments/attach-follower", nil, data_transform(data))
156
- end
157
-
158
- # === Detach invitee.
159
- # Detach invitee.
160
- #
161
- # ==== Parameters
162
- # data:: (Hash) -- Data to be submitted.
163
- #
164
- # ==== Example
165
- # data = {
166
- # "appointment_id": 2,
167
- # "invitee_ids": [ 2 ]
168
- # }
169
- # @data = @mints_user.detach_invitee(data)
170
- def detach_invitee(data)
171
- @client.raw('post', "/config/appointments/detach-invitee", nil, data_transform(data))
172
- end
192
+ # === Sync invitee.
193
+ # Sync invitee.
194
+ #
195
+ # ==== Parameters
196
+ # data:: (Hash) -- Data to be submitted.
197
+ #
198
+ # ==== Example
199
+ # data = {
200
+ # appointment_id: 2,
201
+ # invitee_ids: [ 2 ]
202
+ # }
203
+ # @data = @mints_user.sync_invitee(data)
204
+ def sync_invitee(data)
205
+ @client.raw('post', '/config/appointments/sync-invitee', nil, data_transform(data))
206
+ end
173
207
 
174
- # === Detach follower.
175
- # Detach follower.
176
- #
177
- # ==== Parameters
178
- # data:: (Hash) -- Data to be submitted.
179
- #
180
- # ==== Example
181
- # data = {
182
- # "appointment_id": 2,
183
- # "follower_ids": [ 2 ]
184
- # }
185
- # @data = @mints_user.detach_follower(data)
186
- def detach_follower(data)
187
- @client.raw('post', "/config/appointments/detach-follower", nil, data_transform(data))
188
- end
189
-
190
- # === Sync invitee.
191
- # Sync invitee.
192
- #
193
- # ==== Parameters
194
- # data:: (Hash) -- Data to be submitted.
195
- #
196
- # ==== Example
197
- # data = {
198
- # "appointment_id": 2,
199
- # "invitee_ids": [ 2 ]
200
- # }
201
- # @data = @mints_user.sync_invitee(data)
202
- def sync_invitee(data)
203
- @client.raw('post', "/config/appointments/sync-invitee", nil, data_transform(data))
204
- end
205
-
206
- # === Sync follower.
207
- # Sync follower.
208
- #
209
- # ==== Parameters
210
- # data:: (Hash) -- Data to be submitted.
211
- #
212
- # ==== Example
213
- # data = {
214
- # "appointment_id": 2,
215
- # "follower_ids": [ 2 ]
216
- # }
217
- # @data = @mints_user.sync_follower(data)
218
- def sync_follower(data)
219
- @client.raw('post', "/config/appointments/sync-follower", nil, data_transform(data))
220
- end
221
- end
208
+ # === Sync follower.
209
+ # Sync follower.
210
+ #
211
+ # ==== Parameters
212
+ # data:: (Hash) -- Data to be submitted.
213
+ #
214
+ # ==== Example
215
+ # data = {
216
+ # appointment_id: 2,
217
+ # follower_ids: [ 2 ]
218
+ # }
219
+ # @data = @mints_user.sync_follower(data)
220
+ def sync_follower(data)
221
+ @client.raw('post', '/config/appointments/sync-follower', nil, data_transform(data))
222
+ end
223
+ end
@@ -1,77 +1,79 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AttributeGroups
2
- ##
3
- # == Attribute Groups
4
- #
4
+ ##
5
+ # == Attribute Groups
6
+ #
7
+
8
+ # === Get attribute groups data types.
9
+ # Get data types used in attribute groups.
10
+ #
11
+ # ==== Example
12
+ # @data = @mints_user.get_attribute_groups_data_types
13
+ def get_attribute_groups_data_types
14
+ @client.raw('get', '/config/attribute-groups/object-types')
15
+ end
5
16
 
6
- # === Get attribute groups data types.
7
- # Get data types used in attribute groups.
8
- #
9
- # ==== Example
10
- # @data = @mints_user.get_attribute_groups_data_types
11
- def get_attribute_groups_data_types
12
- @client.raw('get', "/config/attribute-groups/object-types")
13
- end
17
+ # === Get attribute groups.
18
+ # Get a collection of attribute groups.
19
+ #
20
+ # ==== Parameters
21
+ # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
22
+ #
23
+ # ==== First Example
24
+ # @data = @mints_user.get_attribute_groups
25
+ #
26
+ # ==== Second Example
27
+ # options = { sort: 'id' }
28
+ # @data = @mints_user.get_attribute_groups(options)
29
+ def get_attribute_groups(options = nil)
30
+ @client.raw('get', '/config/attribute-groups', options)
31
+ end
14
32
 
15
- # === Get attribute groups.
16
- # Get a collection of attribute groups.
17
- #
18
- # ==== Parameters
19
- # options:: (Hash) -- List of Resource Collection Options shown above can be used as parameter.
20
- #
21
- # ==== First Example
22
- # @data = @mints_user.get_attribute_groups
23
- #
24
- # ==== Second Example
25
- # options = { sort: "id" }
26
- # @data = @mints_user.get_attribute_groups(options)
27
- def get_attribute_groups(options = nil)
28
- @client.raw('get', "/config/attribute-groups", options)
29
- end
30
-
31
- # === Get attribute group.
32
- # Get an attribute group info.
33
- #
34
- # ==== Parameters
35
- # id:: (Integer) -- Attribute group id.
36
- #
37
- # ==== Example
38
- # @data = @mints_user.get_attribute_group(10)
39
- def get_attribute_group(id)
40
- @client.raw('get', "/config/attribute-groups/#{id}")
41
- end
33
+ # === Get attribute group.
34
+ # Get an attribute group info.
35
+ #
36
+ # ==== Parameters
37
+ # id:: (Integer) -- Attribute group id.
38
+ #
39
+ # ==== Example
40
+ # @data = @mints_user.get_attribute_group(10)
41
+ def get_attribute_group(id)
42
+ @client.raw('get', "/config/attribute-groups/#{id}")
43
+ end
42
44
 
43
- # === Create attribute group.
44
- # Create an attribute group with data.
45
- #
46
- # ==== Parameters
47
- # data:: (Hash) -- Data to be submitted.
48
- #
49
- # ==== Example
50
- # data = {
51
- # title: "New Attribute Group",
52
- # "object_type": "contacts"
53
- # }
54
- # @data = @mints_user.create_attribute_group(data)
55
- def create_attribute_group(data)
56
- @client.raw('post', "/config/attribute-groups", nil, data_transform(data))
57
- end
45
+ # === Create attribute group.
46
+ # Create an attribute group with data.
47
+ #
48
+ # ==== Parameters
49
+ # data:: (Hash) -- Data to be submitted.
50
+ #
51
+ # ==== Example
52
+ # data = {
53
+ # title: 'New Attribute Group',
54
+ # object_type: 'contacts'
55
+ # }
56
+ # @data = @mints_user.create_attribute_group(data)
57
+ def create_attribute_group(data)
58
+ @client.raw('post', '/config/attribute-groups', nil, data_transform(data))
59
+ end
58
60
 
59
- # === Update attribute group.
60
- # Update an attribute group info.
61
- #
62
- # ==== Parameters
63
- # id:: (Integer) -- Attribute group id.
64
- # data:: (Hash) -- Data to be submitted.
65
- #
66
- # ==== Example
67
- # data = {
68
- # title: "New Attribute Group Modified",
69
- # "object_type": "contacts",
70
- # slug: "new-attribute-group",
71
- # description: "New description"
72
- # }
73
- # @data = @mints_user.update_attribute_group(36, data)
74
- def update_attribute_group(id, data)
75
- @client.raw('put', "/config/attribute-groups/#{id}", nil, data_transform(data))
76
- end
77
- end
61
+ # === Update attribute group.
62
+ # Update an attribute group info.
63
+ #
64
+ # ==== Parameters
65
+ # id:: (Integer) -- Attribute group id.
66
+ # data:: (Hash) -- Data to be submitted.
67
+ #
68
+ # ==== Example
69
+ # data = {
70
+ # title: 'New Attribute Group Modified',
71
+ # object_type: 'contacts',
72
+ # slug: 'new-attribute-group',
73
+ # description: 'New description'
74
+ # }
75
+ # @data = @mints_user.update_attribute_group(36, data)
76
+ def update_attribute_group(id, data)
77
+ @client.raw('put', "/config/attribute-groups/#{id}", nil, data_transform(data))
78
+ end
79
+ end