Class: Creem::Resources::Licenses
- Inherits:
-
Base
- Object
- Base
- Creem::Resources::Licenses
show all
- Defined in:
- lib/creem/resources/licenses.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#activate(key:, instance_name:) ⇒ Object
16
17
18
|
# File 'lib/creem/resources/licenses.rb', line 16
def activate(key:, instance_name:)
post("/licenses/activate", { key: key, instance_name: instance_name })
end
|
#deactivate(key:, instance_id:) ⇒ Object
20
21
22
|
# File 'lib/creem/resources/licenses.rb', line 20
def deactivate(key:, instance_id:)
post("/licenses/deactivate", { key: key, instance_id: instance_id })
end
|
#list(page_number: 1, page_size: 10) ⇒ Object
8
9
10
|
# File 'lib/creem/resources/licenses.rb', line 8
def list(page_number: 1, page_size: 10)
get("/licenses/search", page_number: page_number, page_size: page_size)
end
|
#validate(key:, instance_id:) ⇒ Object
12
13
14
|
# File 'lib/creem/resources/licenses.rb', line 12
def validate(key:, instance_id:)
post("/licenses/validate", { key: key, instance_id: instance_id })
end
|