blackstack-core 1.2.24 → 1.2.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/functions.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55c96e197be148dcc0a59dae54b55ea96d4772303198c2d0f356d31b651bccf9
|
4
|
+
data.tar.gz: ed2ff7e293e50513cf8924ec65e3f4543ccfa55bc3a80e1d29c42ef4429ef0b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e819841d23b304517eb8879b27a0530ef16df0283a44bd30615614db96bd0dc74b054aa0ee01a6a7ab66e7baaef94aaf6ccedec1c83b80a0098b9a69d053e054
|
7
|
+
data.tar.gz: fc74243fd6b801b29ab41b7035556b1dfe9639d37d6ba7a28e9c54a27ab54a49da10f2aa2a101293a3293cba5a2842a193e426b03b3576708a21c7e962ccd781
|
data/lib/functions.rb
CHANGED
@@ -109,7 +109,7 @@ module BlackStack
|
|
109
109
|
|
110
110
|
# sysowner must provide the id_account for getting an account value.
|
111
111
|
# for non sysowner it is assigned to his account.
|
112
|
-
def self.account_value(
|
112
|
+
def self.account_value(id_account:nil, field:)
|
113
113
|
params = {}
|
114
114
|
params['id_account'] = id_account
|
115
115
|
params['field'] = field
|
@@ -126,13 +126,15 @@ module BlackStack
|
|
126
126
|
# Get array of hash descriptor of profile.
|
127
127
|
#
|
128
128
|
# Parameters:
|
129
|
+
# - id_account: guid. Id of the account to bring the profiles. Sysowner must provide the id_account for getting an account value. For non sysowner it is assigned to his account.
|
129
130
|
# - page: integer. Page number.
|
130
131
|
# - limit: integer. Number of profiles per page.
|
131
132
|
# - params: hash. Additional filter parameters used by the specific child class.
|
132
133
|
#
|
133
|
-
def self.page(page:, limit:, filters: {})
|
134
|
+
def self.page(id_account: nil, page:, limit:, filters: {})
|
134
135
|
# add page and limit to the params
|
135
136
|
params = {}
|
137
|
+
params['id_account'] = id_account
|
136
138
|
params['page'] = page
|
137
139
|
params['limit'] = limit
|
138
140
|
params['filters'] = filters
|