Class: Mutant::License::Subscription Private
- Inherits:
-
Object
- Object
- Mutant::License::Subscription
- Defined in:
- lib/mutant/license/subscription.rb,
lib/mutant/license/subscription/commercial.rb,
lib/mutant/license/subscription/opensource.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Defined Under Namespace
Classes: Commercial, Opensource
Constant Summary collapse
- MESSAGE_FORMAT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
<<~'MESSAGE' Can not validate %<subscription_name>s license. Licensed: %<expected>s Present: %<actual>s MESSAGE
Class Method Summary collapse
- .from_json(value) ⇒ Object private
Class Method Details
.from_json(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 18 19 20 |
# File 'lib/mutant/license/subscription.rb', line 15 def self.from_json(value) { 'com' => Commercial, 'oss' => Opensource }.fetch(value.fetch('type')).from_json(value.fetch('contents')) end |