Class: Xsys::Model::Stock

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Stock

Returns a new instance of Stock.



6
7
8
9
10
# File 'lib/xsys/model/stock.rb', line 6

def initialize(attributes={})
  attributes.each do |k,v|
    self.send("#{k}=", v)
  end
end

Instance Attribute Details

#quantityObject

Returns the value of attribute quantity.



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

def quantity
  @quantity
end

#shop_codeObject

Returns the value of attribute shop_code.



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

def shop_code
  @shop_code
end