Sha256: c5879e50cc8b348bf9a5f2911fe7023004a43c98f80e76bbf17b512b2aedd45f

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

module MeducationSDK
  class UserDiscountCode < Resource
    self.path = "/user_discount_codes"

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

  class UserDiscountCodeMock < Board
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      user_id: 16,
      product_id: 1,
      code: "1234567890",
      expires_at: "2014-05-10",
      created_at: "2013-04-20"
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
meducation_sdk-2.1.1 lib/meducation_sdk/resources/user_discount_code.rb