Class: Noticent::Definitions::Product
- Inherits:
-
Object
- Object
- Noticent::Definitions::Product
- Defined in:
- lib/noticent/definitions/product.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(config, name) ⇒ Product
constructor
A new instance of Product.
Constructor Details
#initialize(config, name) ⇒ Product
Returns a new instance of Product.
8 9 10 11 12 13 |
# File 'lib/noticent/definitions/product.rb', line 8 def initialize(config, name) raise BadConfiguration, 'product name should be a symbol' unless name.is_a? Symbol @config = config @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/noticent/definitions/product.rb', line 6 def name @name end |