Sha256: f6af919aed8f337ef667e0da36663d7c8e825332b7aff86cd9a67c38d34edee1

Contents?: true

Size: 202 Bytes

Versions: 5

Compression:

Stored size: 202 Bytes

Contents

module Enlight
  module Models
    class Model
      attr_accessor :id

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enlight-0.2.4 lib/enlight/models/model.rb
enlight-0.2.3 lib/enlight/models/model.rb
enlight-0.2.2 lib/enlight/models/model.rb
enlight-0.2.1 lib/enlight/models/model.rb
enlight-0.2.0 lib/enlight/models/model.rb