Module: Code42::API::ProductLicense

Included in:
Client
Defined in:
lib/code42/api/product_license.rb

Instance Method Summary collapse

Instance Method Details

#add_product_license(license_key) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/code42/api/product_license.rb', line 12

def add_product_license(license_key)
  attrs = {
    product_license: license_key,
    key: 'products'
  }
  objects_from_response(Code42::ProductLicense, :put, 'productLicense', attrs)
end

#product_licensesObject



4
5
6
# File 'lib/code42/api/product_license.rb', line 4

def product_licenses
  objects_from_response(Code42::ProductLicense, :get, 'productLicense', key: 'products')
end

#remove_product_license(id) ⇒ Object



8
9
10
# File 'lib/code42/api/product_license.rb', line 8

def remove_product_license(id)
  delete("productLicense/#{id}")
end