Class: Xsys::Model::Shop
- Inherits:
-
Object
- Object
- Xsys::Model::Shop
- Defined in:
- lib/xsys/model/shop.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#has_target ⇒ Object
Returns the value of attribute has_target.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_commercial ⇒ Object
Returns the value of attribute is_commercial.
-
#is_physical ⇒ Object
Returns the value of attribute is_physical.
-
#is_service ⇒ Object
Returns the value of attribute is_service.
-
#is_stockable ⇒ Object
Returns the value of attribute is_stockable.
-
#is_virtual ⇒ Object
Returns the value of attribute is_virtual.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #commercial? ⇒ Boolean
- #has_target? ⇒ Boolean
-
#initialize(attributes = {}) ⇒ Shop
constructor
A new instance of Shop.
- #service? ⇒ Boolean
- #stockable? ⇒ Boolean
- #virtual? ⇒ Boolean
Constructor Details
#initialize(attributes = {}) ⇒ Shop
Returns a new instance of Shop.
7 8 9 10 11 |
# File 'lib/xsys/model/shop.rb', line 7 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) end end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def code @code end |
#has_target ⇒ Object
Returns the value of attribute has_target.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def has_target @has_target end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def id @id end |
#is_commercial ⇒ Object
Returns the value of attribute is_commercial.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def is_commercial @is_commercial end |
#is_physical ⇒ Object
Returns the value of attribute is_physical.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def is_physical @is_physical end |
#is_service ⇒ Object
Returns the value of attribute is_service.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def is_service @is_service end |
#is_stockable ⇒ Object
Returns the value of attribute is_stockable.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def is_stockable @is_stockable end |
#is_virtual ⇒ Object
Returns the value of attribute is_virtual.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def is_virtual @is_virtual end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def name @name end |
Instance Method Details
#commercial? ⇒ Boolean
13 14 15 |
# File 'lib/xsys/model/shop.rb', line 13 def commercial? is_commercial == true end |
#has_target? ⇒ Boolean
25 26 27 |
# File 'lib/xsys/model/shop.rb', line 25 def has_target? has_target == true end |
#service? ⇒ Boolean
29 30 31 |
# File 'lib/xsys/model/shop.rb', line 29 def service? is_service == true end |
#stockable? ⇒ Boolean
21 22 23 |
# File 'lib/xsys/model/shop.rb', line 21 def stockable? is_stockable == true end |
#virtual? ⇒ Boolean
17 18 19 |
# File 'lib/xsys/model/shop.rb', line 17 def virtual? is_virtual == true end |