Class: Xsys::Model::User
- Inherits:
-
Object
- Object
- Xsys::Model::User
- Defined in:
- lib/xsys/model/user.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#name ⇒ Object
Returns the value of attribute name.
-
#shop_code ⇒ Object
Returns the value of attribute shop_code.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(attributes = {}) ⇒ User
Returns a new instance of User.
6 7 8 9 10 |
# File 'lib/xsys/model/user.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
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/xsys/model/user.rb', line 4 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/xsys/model/user.rb', line 4 def name @name end |
#shop_code ⇒ Object
Returns the value of attribute shop_code.
4 5 6 |
# File 'lib/xsys/model/user.rb', line 4 def shop_code @shop_code end |