Sha256: 0052ce35d7f3a682fd1b0198ce20688863e50ce735c691a55c18fd46d539c5f1
Contents?: true
Size: 831 Bytes
Versions: 10
Compression:
Stored size: 831 Bytes
Contents
# frozen_string_literal: true # This model represents the 'menuButton' content type in Contentful. Any linked # entries of the 'menuButton' content type will be resolved as instances of this class. # It exposes #find, #find_by, and #find_all methods to query Contentful. class MenuButton < WCC::Contentful::Model::MenuButton # Add custom validations to ensure that app-specific properties exist: # validate_field :foo, :String, :required # validate_field :bar_links, :Array, link_to: %w[bar baz] # Override functionality or add utilities # # # Example: override equality # def ===(other) # ... # end # # # Example: override "text" attribute to always be camelized. # # `@text` is populated by the gem in the initializer. # def text # @text_camelized ||= @text.camelize(true) # end end
Version data entries
10 entries across 10 versions & 2 rubygems