Sha256: eb41ff530d946a173eb97267cbf45560c5f25acde7e897858644efa47159a057

Contents?: true

Size: 931 Bytes

Versions: 55

Compression:

Stored size: 931 Bytes

Contents

module Kaui
  class Product
    attr_reader :id
    attr_reader :product_name
    attr_reader :product_category
    attr_reader :billing_period

    def initialize(data = {})
      @id = data[:id]
      @product_name = data[:product_name]
      @product_category = data[:product_category]
      @billing_period = data[:billing_period]
    end
  end

  SAMPLE_BASE_PRODUCTS = [
    Kaui::Product.new(:id => "product1", :product_category => "Base", :product_name => "OneBase", :billing_period => "ANNUAL"),
    Kaui::Product.new(:id => "product2", :product_category => "Base", :product_name => "TwoBase", :billing_period => "MONTHLY"),
  ]
  SAMPLE_ADDON_PRODUCTS = [
    Kaui::Product.new(:id => "addon1", :product_category => "AddOn", :product_name => "OneAddon", :billing_period => "MONTHLY"),
    Kaui::Product.new(:id => "addon2", :product_category => "AddOn", :product_name => "TwoAddon", :billing_period => "MONTHLY"),
  ]
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
kaui-0.6.6 app/models/kaui/product.rb
kaui-0.6.5 app/models/kaui/product.rb
kaui-0.6.4 app/models/kaui/product.rb
kaui-0.6.3 app/models/kaui/product.rb
kaui-0.6.2 app/models/kaui/product.rb
kaui-0.6.1 app/models/kaui/product.rb
kaui-0.6.0 app/models/kaui/product.rb
kaui-0.5.3 app/models/kaui/product.rb
kaui-0.5.2 app/models/kaui/product.rb
kaui-0.5.1 app/models/kaui/product.rb
kaui-0.5.0 app/models/kaui/product.rb
kaui-0.4.9 app/models/kaui/product.rb
kaui-0.4.8 app/models/kaui/product.rb
kaui-0.4.7 app/models/kaui/product.rb
kaui-0.4.6 app/models/kaui/product.rb
kaui-0.4.5 app/models/kaui/product.rb
kaui-0.4.4 app/models/kaui/product.rb
kaui-0.4.3 app/models/kaui/product.rb
kaui-0.4.2 app/models/kaui/product.rb
kaui-0.4.1 app/models/kaui/product.rb