Class: DiscourseSubscriptionClient::Subscriptions::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/discourse_subscription_client/subscriptions/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#productsObject

Returns the value of attribute products.



6
7
8
# File 'lib/discourse_subscription_client/subscriptions/result.rb', line 6

def products
  @products
end

#resourceObject

Returns the value of attribute resource.



6
7
8
# File 'lib/discourse_subscription_client/subscriptions/result.rb', line 6

def resource
  @resource
end

#subscriptionsObject

Returns the value of attribute subscriptions.



6
7
8
# File 'lib/discourse_subscription_client/subscriptions/result.rb', line 6

def subscriptions
  @subscriptions
end

#supplierObject

Returns the value of attribute supplier.



6
7
8
# File 'lib/discourse_subscription_client/subscriptions/result.rb', line 6

def supplier
  @supplier
end

Instance Method Details

#any?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/discourse_subscription_client/subscriptions/result.rb', line 11

def any?
  supplier.present? && resource.present? && subscriptions.present? && products.present?
end