Class: Xsys::Model::Shop

Inherits:
Object
  • Object
show all
Defined in:
lib/xsys/model/shop.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/xsys/model/shop.rb', line 4

def code
  @code
end

#has_targetObject

Returns the value of attribute has_target.



4
5
6
# File 'lib/xsys/model/shop.rb', line 4

def has_target
  @has_target
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/xsys/model/shop.rb', line 4

def id
  @id
end

#is_commercialObject

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_physicalObject

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_serviceObject

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_stockableObject

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_virtualObject

Returns the value of attribute is_virtual.



4
5
6
# File 'lib/xsys/model/shop.rb', line 4

def is_virtual
  @is_virtual
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/xsys/model/shop.rb', line 4

def name
  @name
end

#physical_shop_codeObject

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_idObject

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

Returns:

  • (Boolean)


14
15
16
# File 'lib/xsys/model/shop.rb', line 14

def commercial?
  is_commercial == true
end

#has_target?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/xsys/model/shop.rb', line 26

def has_target?
  has_target == true
end

#service?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/xsys/model/shop.rb', line 30

def service?
  is_service == true
end

#stockable?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/xsys/model/shop.rb', line 22

def stockable?
  is_stockable == true
end

#virtual?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/xsys/model/shop.rb', line 18

def virtual?
  is_virtual == true
end