Class: AuthLh::Shop
- Inherits:
-
Object
- Object
- AuthLh::Shop
- Defined in:
- lib/auth_lh/shop.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#stock_description ⇒ Object
Returns the value of attribute stock_description.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Shop
constructor
A new instance of Shop.
Constructor Details
#initialize(attributes = {}) ⇒ Shop
Returns a new instance of Shop.
5 6 7 8 9 |
# File 'lib/auth_lh/shop.rb', line 5 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.
3 4 5 |
# File 'lib/auth_lh/shop.rb', line 3 def code @code end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/auth_lh/shop.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/auth_lh/shop.rb', line 3 def name @name end |
#stock_description ⇒ Object
Returns the value of attribute stock_description.
3 4 5 |
# File 'lib/auth_lh/shop.rb', line 3 def stock_description @stock_description end |