class RuneRb::Shops::Shop

Attributes

container[R]
customstock[RW]
generalstore[RW]
name[RW]
original_stock[RW]

Public Class Methods

new() click to toggle source
# File app/services/shops.rb, line 216
def initialize
  @container = RuneRb::Item::Container.new true, 40
end

Public Instance Methods

original_stock=(stock) click to toggle source
# File app/services/shops.rb, line 220
def original_stock=(stock)
  @container.clear
  @original_stock = stock
  @original_stock.each {|item, amount|
    @container.items << RuneRb::Item::Item.new(item, amount)
  }
end