Sha256: 3bba352cf3255b7aa404d5f49ee0464fb661d4694a967dd427500c8d012c112f

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

module Vindi
  # Products
  #
  # @example Active productts
  #
  #   products = Vindi::Product.active
  #
  # @example Create a product
  #
  #   palantir = Vindi::Product.new.tap do |p|
  #     p.code = "palantir"
  #     p.name = "Palantir"
  #     p.description = "The Twitch of Istari folk"
  #     p.pricing_schema = { price: 42.42 }
  #     p.save
  #   end
  #
  class Product < Model
    belongs_to :pricing_schema

    has_many :plans
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rvindi-0.0.3 lib/vindi/models/product.rb
vindi-hermes-0.0.2 lib/vindi/models/product.rb
vindi-hermes-0.0.1 lib/vindi/models/product.rb