Class: Kaui::Product

Inherits:
Object
  • Object
show all
Defined in:
app/models/kaui/product.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Product

Returns a new instance of Product.



8
9
10
11
12
13
# File 'app/models/kaui/product.rb', line 8

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

Instance Attribute Details

#billing_periodObject (readonly)

Returns the value of attribute billing_period.



6
7
8
# File 'app/models/kaui/product.rb', line 6

def billing_period
  @billing_period
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'app/models/kaui/product.rb', line 3

def id
  @id
end

#product_categoryObject (readonly)

Returns the value of attribute product_category.



5
6
7
# File 'app/models/kaui/product.rb', line 5

def product_category
  @product_category
end

#product_nameObject (readonly)

Returns the value of attribute product_name.



4
5
6
# File 'app/models/kaui/product.rb', line 4

def product_name
  @product_name
end