0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02:00
discourse-custom-wizard/lib/custom_wizard/pro.rb
2021-08-10 14:45:23 +08:00

21 Zeilen
Kein EOL
409 B
Ruby

# frozen_string_literal: true
class CustomWizard::Pro
NAMESPACE ||= "#{CustomWizard::PLUGIN_NAME}_pro"
attr_reader :authentication,
:subscription
def initialize
@authentication = CustomWizard::ProAuthentication.new
@subscription = CustomWizard::ProSubscription.new
end
def authorized?
@authentication.active?
end
def subscribed?
@subscription.active?
end
end