Sha256: f2297a7b73e8da0b1db2c49325370dab736eea4e499f4ac3334435ddf7b04309

Contents?: true

Size: 164 Bytes

Versions: 3

Compression:

Stored size: 164 Bytes

Contents

module Id
  module Model
    class HasMany < Association

      def value_of(data)
        data.fetch(key, []).map { |r| type.new(r) }
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
id-0.0.12 lib/id/model/has_many.rb
id-0.0.11 lib/id/model/has_many.rb
id-0.0.10 lib/id/model/has_many.rb