Class: Pageflow::EntryType
- Inherits:
-
Object
- Object
- Pageflow::EntryType
- Defined in:
- lib/pageflow/entry_type.rb
Overview
Captures details of how to render entries of a certain type
Instance Attribute Summary collapse
- #configuration ⇒ Object readonly private
- #editor_app ⇒ Object readonly private
- #editor_fragment_renderer ⇒ Object readonly private
- #frontend_app ⇒ Object readonly private
- #name ⇒ Object readonly private
- #theme_files ⇒ Object readonly private
- #web_app_manifest ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(name:, frontend_app:, editor_fragment_renderer:, configuration:, editor_app: nil, theme_files: {}, web_app_manifest: nil) ⇒ EntryType
constructor
A new instance of EntryType.
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.
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
#configuration ⇒ Object (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.
7 8 9 |
# File 'lib/pageflow/entry_type.rb', line 7 def configuration @configuration end |
#editor_app ⇒ Object (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.
7 8 9 |
# File 'lib/pageflow/entry_type.rb', line 7 def editor_app @editor_app end |
#editor_fragment_renderer ⇒ Object (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.
7 8 9 |
# File 'lib/pageflow/entry_type.rb', line 7 def editor_fragment_renderer @editor_fragment_renderer end |
#frontend_app ⇒ Object (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.
7 8 9 |
# File 'lib/pageflow/entry_type.rb', line 7 def frontend_app @frontend_app end |
#name ⇒ Object (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.
7 8 9 |
# File 'lib/pageflow/entry_type.rb', line 7 def name @name end |
#theme_files ⇒ Object (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.
7 8 9 |
# File 'lib/pageflow/entry_type.rb', line 7 def theme_files @theme_files end |
#web_app_manifest ⇒ Object (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.
7 8 9 |
# File 'lib/pageflow/entry_type.rb', line 7 def web_app_manifest @web_app_manifest end |