Class: Pageflow::EntryType

Inherits:
Object
  • Object
show all
Defined in:
lib/pageflow/entry_type.rb

Overview

Captures details of how to render entries of a certain type

Since:

  • 15.1

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, frontend_app:, editor_fragment_renderer:, configuration:, editor_app: nil, theme_files: {}, web_app_manifest: nil) ⇒ EntryType

Returns a new instance of EntryType.

Since:

  • 15.1



33
34
35
36
37
38
39
40
41
42
# File 'lib/pageflow/entry_type.rb', line 33

def initialize(name:, frontend_app:, editor_fragment_renderer:, configuration:, editor_app: nil,
               theme_files: {}, web_app_manifest: nil)
  @name = name
  @frontend_app = frontend_app
  @editor_fragment_renderer = editor_fragment_renderer
  @configuration = configuration
  @editor_app = editor_app
  @theme_files = theme_files
  @web_app_manifest = web_app_manifest
end

Instance Attribute Details

#configurationObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 15.1



7
8
9
# File 'lib/pageflow/entry_type.rb', line 7

def configuration
  @configuration
end

#editor_appObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 15.1



7
8
9
# File 'lib/pageflow/entry_type.rb', line 7

def editor_app
  @editor_app
end

#editor_fragment_rendererObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 15.1



7
8
9
# File 'lib/pageflow/entry_type.rb', line 7

def editor_fragment_renderer
  @editor_fragment_renderer
end

#frontend_appObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 15.1



7
8
9
# File 'lib/pageflow/entry_type.rb', line 7

def frontend_app
  @frontend_app
end

#nameObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 15.1



7
8
9
# File 'lib/pageflow/entry_type.rb', line 7

def name
  @name
end

#theme_filesObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 15.1



7
8
9
# File 'lib/pageflow/entry_type.rb', line 7

def theme_files
  @theme_files
end

#web_app_manifestObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 15.1



7
8
9
# File 'lib/pageflow/entry_type.rb', line 7

def web_app_manifest
  @web_app_manifest
end