Class: Kaui::Product
- Inherits:
-
Object
- Object
- Kaui::Product
- Defined in:
- app/models/kaui/product.rb
Instance Attribute Summary collapse
-
#billing_period ⇒ Object
readonly
Returns the value of attribute billing_period.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#product_category ⇒ Object
readonly
Returns the value of attribute product_category.
-
#product_name ⇒ Object
readonly
Returns the value of attribute product_name.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Product
constructor
A new instance of Product.
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_period ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'app/models/kaui/product.rb', line 3 def id @id end |
#product_category ⇒ Object (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_name ⇒ Object (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 |