Class: Sketchup::Licensing::ExtensionLicense
Relationships | |
Inherits: | Object |
Overview
The Sketchup::Licensing::ExtensionLicense class is used to store extension license information. An instance of this class is returned by ::Sketchup::Licensing
.get_extension_license. Note that this is a temporary object representing the extension licensing state for the moment it was returned. It will not reflect any licensing state changes that may occur.
Instance Attribute Summary
-
#licensed? ⇒ Boolean
readonly
The licensed? method is used to decide whether the extension is licensed to run or not.
Instance Method Summary
-
#days_remaining ⇒ Object
The days_remaining method is used to get the number of days remaining until license expiration.
-
#error_description ⇒ Object
The error_description method is used to obtain error information in case of failure to acquire a license.
-
#state ⇒ Object
The state method returns a constant indicating the specific licensing state.
Instance Attribute Details
#licensed? ⇒ Boolean
(readonly)
The licensed? method is used to decide whether the extension is licensed to run or not.
Instance Method Details
#days_remaining ⇒ Object
The days_remaining method is used to get the number of days remaining until license expiration.
#error_description ⇒ Object
The error_description method is used to obtain error information in case of failure to acquire a license. This is meant to aid in debugging only. Extensions should not rely on any exact error description.
#state ⇒ Object
The state method returns a constant indicating the specific licensing state. These should be used for informational purposes only and not to decide if the extension is licensed to run. For that, please use the licensed? method.