0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 09:50:28 +01:00
discourse-custom-wizard/spec/fixtures/subscription_client.rb

41 Zeilen
756 B
Ruby

2022-03-25 17:08:24 +01:00
# frozen_string_literal: true
module SubscriptionClient
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 SubscriptionClient
class Subscriptions
class Result
attr_accessor :supplier,
:resource,
2023-05-04 17:25:10 +02:00
:subscriptions,
:products
def any?
2023-05-04 17:25:10 +02:00
supplier.present? && resource.present? && subscriptions.present? && products.present?
end
end
end
end