Sha256: c1b654c5b4677dfc934f1a87550e81e1ebfd5c727a4e22785eb2e9ced16bc2f8
Contents?: true
Size: 629 Bytes
Versions: 32
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true # This model represents the 'menu' content type in Contentful. Any linked # entries of the 'menu' content type will be resolved as instances of this class. # It exposes #find, #find_by, and #find_all methods to query Contentful. class Menu < WCC::Contentful::Model::Menu # Override functionality or add utilities # # # Example: override equality # def ===(other) # ... # end # # # Example: override "name" attribute to always be camelized. # # `@name` is populated by the gem in the initializer. # def name # @name_camelized ||= @name.camelize(true) # end end
Version data entries
32 entries across 32 versions & 1 rubygems