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.
-
#physical_shop_code ⇒ Object
Returns the value of attribute physical_shop_code.
-
#physical_shop_id ⇒ Object
Returns the value of attribute physical_shop_id.
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.
8 9 10 11 12 |
# File 'lib/xsys/model/shop.rb', line 8 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) if self.respond_to?(k) 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 |
#physical_shop_code ⇒ Object
Returns the value of attribute physical_shop_code.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def physical_shop_code @physical_shop_code end |
#physical_shop_id ⇒ Object
Returns the value of attribute physical_shop_id.
4 5 6 |
# File 'lib/xsys/model/shop.rb', line 4 def physical_shop_id @physical_shop_id end |
Instance Method Details
#commercial? ⇒ Boolean
14 15 16 |
# File 'lib/xsys/model/shop.rb', line 14 def commercial? is_commercial == true end |
#has_target? ⇒ Boolean
26 27 28 |
# File 'lib/xsys/model/shop.rb', line 26 def has_target? has_target == true end |
#service? ⇒ Boolean
30 31 32 |
# File 'lib/xsys/model/shop.rb', line 30 def service? is_service == true end |
#stockable? ⇒ Boolean
22 23 24 |
# File 'lib/xsys/model/shop.rb', line 22 def stockable? is_stockable == true end |
#virtual? ⇒ Boolean
18 19 20 |
# File 'lib/xsys/model/shop.rb', line 18 def virtual? is_virtual == true end |