Class: Xsys::Model::PriceList
- Inherits:
-
Object
- Object
- Xsys::Model::PriceList
- Defined in:
- lib/xsys/model/price_list.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PriceList
constructor
A new instance of PriceList.
Constructor Details
#initialize(attributes = {}) ⇒ PriceList
Returns a new instance of PriceList.
6 7 8 9 10 |
# File 'lib/xsys/model/price_list.rb', line 6 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) if self.respond_to?(k) end end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/xsys/model/price_list.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/xsys/model/price_list.rb', line 4 def name @name end |