blackstack-core 1.2.23 → 1.2.25

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/functions.rb +7 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30ea09900641e507edb279e9c8ed49ce2e1e4d9ef4ae7fd7ec1afce0d2f5cd31
4
- data.tar.gz: a70e0bd54110e19fa2b24db9c660e7eb27a07e91aae0be0faa9ccc9c26cccdf0
3
+ metadata.gz: 55c96e197be148dcc0a59dae54b55ea96d4772303198c2d0f356d31b651bccf9
4
+ data.tar.gz: ed2ff7e293e50513cf8924ec65e3f4543ccfa55bc3a80e1d29c42ef4429ef0b6
5
5
  SHA512:
6
- metadata.gz: 68ca9aeae4f4cd0409537d122cad0f912b00123c58f8305cf27cdac2ddd86cd3140281f13ea835d5cf05f3a7b1d938bf81be8a38fd79135ffc3d8e34115f438d
7
- data.tar.gz: e1c42d2d525ba62e899c87c008d94e172940b74994f0b38c6429436e714b15969c9061086e1c050d4adefcf3e47b0ded67bdc64b0255e7897e6277cb176ef409
6
+ metadata.gz: e819841d23b304517eb8879b27a0530ef16df0283a44bd30615614db96bd0dc74b054aa0ee01a6a7ab66e7baaef94aaf6ccedec1c83b80a0098b9a69d053e054
7
+ data.tar.gz: fc74243fd6b801b29ab41b7035556b1dfe9639d37d6ba7a28e9c54a27ab54a49da10f2aa2a101293a3293cba5a2842a193e426b03b3576708a21c7e962ccd781
data/lib/functions.rb CHANGED
@@ -107,8 +107,11 @@ module BlackStack
107
107
  return self
108
108
  end
109
109
 
110
- def self.account_value(field:)
110
+ # sysowner must provide the id_account for getting an account value.
111
+ # for non sysowner it is assigned to his account.
112
+ def self.account_value(id_account:nil, field:)
111
113
  params = {}
114
+ params['id_account'] = id_account
112
115
  params['field'] = field
113
116
  # call the API
114
117
  ret = BlackStack::API.post(
@@ -123,13 +126,15 @@ module BlackStack
123
126
  # Get array of hash descriptor of profile.
124
127
  #
125
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.
126
130
  # - page: integer. Page number.
127
131
  # - limit: integer. Number of profiles per page.
128
132
  # - params: hash. Additional filter parameters used by the specific child class.
129
133
  #
130
- def self.page(page:, limit:, filters: {})
134
+ def self.page(id_account: nil, page:, limit:, filters: {})
131
135
  # add page and limit to the params
132
136
  params = {}
137
+ params['id_account'] = id_account
133
138
  params['page'] = page
134
139
  params['limit'] = limit
135
140
  params['filters'] = filters
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackstack-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.23
4
+ version: 1.2.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-03 00:00:00.000000000 Z
11
+ date: 2024-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: content_spinning