Sha256: eefb68adff26a6ceda061d7f6099a6cd6150455cb6dab962209cf27b9c22af8b
Contents?: true
Size: 683 Bytes
Versions: 9
Compression:
Stored size: 683 Bytes
Contents
module Xsys module Model class Shop attr_accessor :id, :code, :name, :is_commercial, :is_virtual, :is_physical, :is_stockable, :has_target, :is_service, :physical_shop_code, :physical_shop_id def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) if self.respond_to?(k) end end def commercial? is_commercial == true end def virtual? is_virtual == true end def stockable? is_stockable == true end def has_target? has_target == true end def service? is_service == true end end end end
Version data entries
9 entries across 9 versions & 1 rubygems