Sha256: 80195ec7ff17fc727e5b5e6b1356a8a50a5d3f926d2c9123a81bea17771e2299

Contents?: true

Size: 352 Bytes

Versions: 37

Compression:

Stored size: 352 Bytes

Contents

module MeducationSDK
  class EcommerceSubscription < Resource
    self.path = "/ecommerce_subscriptions"

    def user
      @user ||= User.find(user_id)
    end
  end

  class EcommerceSubscriptionMock < EcommerceSubscription
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      user_id: 89,
      product_id: 1
    }
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
meducation_sdk-1.6.10 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.6.6 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.6.5 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.6.4 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.6.3 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.6.2 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.6.1 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.6.0 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.5.7 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.5.6 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.5.5 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.5.4 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.5.3 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.5.2 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.5.1 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.5.0 lib/meducation_sdk/resources/ecommerce_subscription.rb
meducation_sdk-1.4.4 lib/meducation_sdk/resources/ecommerce_subscription.rb