class Rsrb::Shops::Shop
Attributes
container[R]
customstock[RW]
generalstore[RW]
name[RW]
original_stock[RW]
Public Class Methods
new()
click to toggle source
# File lib/rsrb/services/shops.rb, line 216 def initialize @container = Rsrb::Item::Container.new true, 40 end
Public Instance Methods
original_stock=(stock)
click to toggle source
# File lib/rsrb/services/shops.rb, line 220 def original_stock=(stock) @container.clear @original_stock = stock @original_stock.each {|item, amount| @container.items << Rsrb::Item::Item.new(item, amount) } end