Sha256: a28688a3f3700e59599ff6c56398ee09795138dfdb8a9405f7e835dc9f743f13
Contents?: true
Size: 656 Bytes
Versions: 32
Compression:
Stored size: 656 Bytes
Contents
# frozen_string_literal: true # This model represents the 'site-config' content type in Contentful. Any linked # entries of the 'site-config' content type will be resolved as instances of this class. # It exposes .find, .find_by, and .find_all methods to query Contentful. class SiteConfig < WCC::Contentful::Model::SiteConfig # 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