Sha256: f3ba844f35271fe64caba7ed80b4f57518f91fab5850bb052a5356c90b3dc371
Contents?: true
Size: 236 Bytes
Versions: 1
Compression:
Stored size: 236 Bytes
Contents
# frozen_string_literal: true WCC::Contentful::Metadata = Struct.new(:raw) do def tags @tags ||= Array(raw['tags']).map do |tag| WCC::Contentful::Link.new(tag) if tag.is_a?(Hash) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wcc-contentful-1.7.0 | lib/wcc/contentful/metadata.rb |