Sha256: 58a2268b55e08ebc362f3bccfc9af86b8f7f67be45772b6a17847beda75fc0c0

Contents?: true

Size: 252 Bytes

Versions: 7

Compression:

Stored size: 252 Bytes

Contents

module Xsys
  module Model
    class User
      attr_accessor :code, :name, :shop_code

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
xsys-0.0.27 lib/xsys/model/user.rb
xsys-0.0.26 lib/xsys/model/user.rb
xsys-0.0.25 lib/xsys/model/user.rb
xsys-0.0.24 lib/xsys/model/user.rb
xsys-0.0.23 lib/xsys/model/user.rb
xsys-0.0.22 lib/xsys/model/user.rb
xsys-0.0.21 lib/xsys/model/user.rb