Sha256: 8292b781e8ae7514ee786bddb64ee9953a7c362de4afc74a2599cbe3cbc3ffff

Contents?: true

Size: 259 Bytes

Versions: 4

Compression:

Stored size: 259 Bytes

Contents

# frozen_string_literal: true

class WCC::Contentful::Model::Menu < WCC::Contentful::Model
  validate_field :name, :String
  validate_field :top_button, :Link, :optional, link_to: 'menuButton'
  validate_field :items, :Array, link_to: %w[menu menuButton]
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wcc-contentful-0.2.2 lib/wcc/contentful/model/menu.rb
wcc-contentful-0.2.1 lib/wcc/contentful/model/menu.rb
wcc-contentful-0.2.0 lib/wcc/contentful/model/menu.rb
wcc-contentful-0.1.0 lib/wcc/contentful/model/menu.rb