Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-29 20:20:29 +01:00
39 Zeilen
722 B
Ruby
39 Zeilen
722 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseSubscriptionClient
|
|
def self.find_subscriptions(resource_name)
|
|
end
|
|
end
|
|
|
|
class SubscriptionClientSupplier
|
|
attr_reader :product_slugs
|
|
|
|
def initialize(product_slugs)
|
|
@product_slugs = product_slugs
|
|
end
|
|
end
|
|
|
|
class SubscriptionClientResource
|
|
end
|
|
|
|
class SubscriptionClientSubscription
|
|
attr_reader :product_id
|
|
|
|
def initialize(product_id)
|
|
@product_id = product_id
|
|
end
|
|
end
|
|
|
|
module DiscourseSubscriptionClient
|
|
class Subscriptions
|
|
class Result
|
|
attr_accessor :supplier,
|
|
:resource,
|
|
:subscriptions
|
|
|
|
def any?
|
|
supplier.present? && resource.present? && subscriptions.present?
|
|
end
|
|
end
|
|
end
|
|
end
|