Class: Mutant::License::Subscription::Commercial Private
- Inherits:
-
Mutant::License::Subscription
- Object
- Mutant::License::Subscription
- Mutant::License::Subscription::Commercial
- Includes:
- Unparser::AbstractType
- Defined in:
- lib/mutant/license/subscription/commercial.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: Individual, Organization
Constant Summary
Constants inherited from Mutant::License::Subscription
Class Method Summary collapse
- .from_json(value) ⇒ Object private
Methods inherited from Mutant::License::Subscription
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.
9 10 11 12 13 14 |
# File 'lib/mutant/license/subscription/commercial.rb', line 9 def self.from_json(value) { 'individual' => Individual, 'organization' => Organization }.fetch(value.fetch('type', 'individual')).from_json(value) end |