Sha256: cf88a479183cbb5d5703e1d54fa5cadada2ad45538b62dbf33a2747ad1f31c34

Contents?: true

Size: 938 Bytes

Versions: 1

Compression:

Stored size: 938 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_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

1 entries across 1 versions & 1 rubygems

Version Path
kaui-0.0.1 app/models/kaui/product.rb