Sha256: bf0a9bb726fd398f088eca19550a635ca0375393b0955542d68476b5c3425f72

Contents?: true

Size: 275 Bytes

Versions: 5

Compression:

Stored size: 275 Bytes

Contents

require 'delegate'

module Husky

  class Entity < SimpleDelegator

     class << self

      def wrap(items)
        items.map { |item| new(item) }
      end

    end

    attr_reader :object

    def initialize(object)
      @object = object
      super
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
husky-0.1.3 lib/husky/entity.rb
husky-0.1.2 lib/husky/entity.rb
husky-0.1.1 lib/husky/entity.rb
husky-0.1.0 lib/husky/entity.rb
husky-0.0.9 lib/husky/entity.rb