Class: ONEAccess::API::V1_1::Entitlement::Organization::ProductGroup

Inherits:
Base
  • Object
show all
Defined in:
lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb

Class Method Summary collapse

Methods inherited from ApiBase

api_url, resource_api_path, send_get, send_post

Class Method Details

.get_list(contributor_org_id:, page_number: 0, page_size: 20, type: nil) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb', line 13

def self.get_list(contributor_org_id:, page_number: 0, page_size: 20, type: nil)
  resp = send_get("getList", Query: {
    PageNumber:       page_number,
    PageSize:         page_size,
    ContributorOrgId: contributor_org_id,
    Type:             type
  }.to_json)
  Response::ProductGroupsResponse.from_json(resp.body)
end