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