lib/gemwarrior/entities/item.rb in gemwarrior-0.4.1 vs lib/gemwarrior/entities/item.rb in gemwarrior-0.5

- old
+ new

@@ -3,20 +3,13 @@ require_relative 'entity' module Gemwarrior class Item < Entity - attr_accessor :id, :name, :description, - :atk_lo, :atk_hi, :takeable, :equippable, :equipped - - def initialize(options) - self.id = options[:id] - self.name = options[:name] - self.description = options[:description] - self.atk_lo = options[:atk_lo] - self.atk_hi = options[:atk_hi] - self.takeable = options[:takeable] - self.equippable = options[:equippable] - self.equipped = options[:equipped] - end + attr_accessor :atk_lo, + :atk_hi, + :takeable, + :useable, + :equippable, + :equipped end end