Sha256: b0b3aab59b121f409afd10f2ca132cd41e38097cfdeff51dc33f4102776c64ec

Contents?: true

Size: 270 Bytes

Versions: 8

Compression:

Stored size: 270 Bytes

Contents

# frozen_string_literal: true

class WCC::Contentful::Model::Page < WCC::Contentful::Model
  validate_field :title, :String
  validate_field :slug, :String
  validate_field :subpages, :Array, link_to: %w[page]
  validate_field :sections, :Array, link_to: /^section/
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
wcc-contentful-app-0.4.0.pre.rc lib/wcc/contentful/model/page.rb
wcc-contentful-app-0.4.0.pre.alpha lib/wcc/contentful/model/page.rb
wcc-contentful-0.3.0 lib/wcc/contentful/model/page.rb
wcc-contentful-app-0.3.0.pre.rc3 lib/wcc/contentful/model/page.rb
wcc-contentful-app-0.3.0.pre.rc2 lib/wcc/contentful/model/page.rb
wcc-contentful-app-0.3.0.pre.rc lib/wcc/contentful/model/page.rb
wcc-contentful-app-0.2.2 lib/wcc/contentful/model/page.rb
wcc-contentful-0.2.2 lib/wcc/contentful/model/page.rb