Sha256: ca0bb6e3b54580d08866122b579b7c1b016f14fd2a3aad589cc3ae98f8fe67c9

Contents?: true

Size: 864 Bytes

Versions: 32

Compression:

Stored size: 864 Bytes

Contents

# frozen_string_literal: true

# This model represents the 'section-code-widget' content type in Contentful.  Any linked
# entries of the 'section-code-widget' content type will be resolved as instances of this class.
# It exposes .find, .find_by, and .find_all methods to query Contentful.
class SectionCodeWidget < WCC::Contentful::Model::SectionCodeWidget
  # 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 "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

Version Path
wcc-contentful-app-1.0.8 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.7 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.6 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.5 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.4 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.3 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.2 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.1 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.0 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.0.pre.rc3 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.0.pre.rc2 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb
wcc-contentful-app-1.0.0.pre.rc1 lib/generators/wcc/templates/section-code-widget/models/section_code_widget.rb