Class: Mutant::License::Subscription::Commercial::Organization Private
- Inherits:
-
Mutant::License::Subscription::Commercial
- Object
- Mutant::License::Subscription
- Mutant::License::Subscription::Commercial
- Mutant::License::Subscription::Commercial::Organization
- 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.
Constant Summary collapse
- SUBSCRIPTION_NAME =
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.
'commercial organization'
Constants inherited from Mutant::License::Subscription
Class Method Summary collapse
- .from_json(value) ⇒ Object private
Instance Method Summary collapse
- #call(world) ⇒ 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.
19 20 21 |
# File 'lib/mutant/license/subscription/commercial.rb', line 19 def self.from_json(value) new(licensed: value.fetch('repositories').map(&Repository.public_method(:parse)).to_set) end |
Instance Method Details
#call(world) ⇒ 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.
23 24 25 |
# File 'lib/mutant/license/subscription/commercial.rb', line 23 def call(world) Repository.load_from_git(world).bind(&method(:check_subscription)) end |