Class: Mdm::ApiKey
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Mdm::ApiKey
- Defined in:
- app/models/mdm/api_key.rb
Overview
API key to access the RPC.
Instance Attribute Summary collapse
-
#created_at ⇒ DateTime
When this API Key was created.
-
#token ⇒ String
The API Key to authenicate to the RPC.
-
#updated_at ⇒ DateTime
The last time this API Key was updated.
Instance Method Summary collapse
-
#supports_api ⇒ void
protected
Validates whether License supports API.
Instance Attribute Details
#created_at ⇒ DateTime
When this API Key was created.
|
# File 'app/models/mdm/api_key.rb', line 8
|
#token ⇒ String
The API Key to authenicate to the RPC.
|
# File 'app/models/mdm/api_key.rb', line 13
|
#updated_at ⇒ DateTime
The last time this API Key was updated.
|
# File 'app/models/mdm/api_key.rb', line 18
|
Instance Method Details
#supports_api ⇒ void (protected)
TODO:
MSP-2724
This method returns an undefined value.
Validates whether License supports API.
52 53 54 55 56 57 58 |
# File 'app/models/mdm/api_key.rb', line 52 def supports_api license = License.get if license and not license.supports_api? errors.add :license, " - this product does not support API access" end end |