Sha256: 0f95c98d12f3f11a12c3947d7fbbfd33d3b4ad51e245fedd4fe1e99a36078ec0
Contents?: true
Size: 475 Bytes
Versions: 29
Compression:
Stored size: 475 Bytes
Contents
# frozen_string_literal: true module Dato module Local module FieldType class Links < Array def self.parse(ids, repo) items = if ids ids.map { |id| repo.find(id) } else [] end new(items) end def to_hash(max_depth = 3, current_depth = 0) map { |item| item.to_hash(max_depth, current_depth) } end end end end end
Version data entries
29 entries across 29 versions & 1 rubygems