Class: Hyrax::FormFields Private
- Inherits:
-
Module
- Object
- Module
- Hyrax::FormFields
- Defined in:
- lib/hyrax/form_fields.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #name ⇒ Object readonly private
Instance Method Summary collapse
- #form_field_definitions ⇒ Hash{Symbol => Hash{Symbol => Object}} private
-
#initialize(schema_name, definition_loader: SimpleSchemaLoader.new) ⇒ FormFields
constructor
private
A new instance of FormFields.
- #inspect ⇒ String private
Constructor Details
#initialize(schema_name, definition_loader: SimpleSchemaLoader.new) ⇒ FormFields
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.
use Hyrax::FormFields(:my_schema) instead
Returns a new instance of FormFields.
28 29 30 31 |
# File 'lib/hyrax/form_fields.rb', line 28 def initialize(schema_name, definition_loader: SimpleSchemaLoader.new) @name = schema_name @definition_loader = definition_loader end |
Instance Attribute Details
#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.
19 20 21 |
# File 'lib/hyrax/form_fields.rb', line 19 def name @name end |
Instance Method Details
#form_field_definitions ⇒ Hash{Symbol => Hash{Symbol => Object}}
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.
35 36 37 |
# File 'lib/hyrax/form_fields.rb', line 35 def form_field_definitions @definition_loader.form_definitions_for(schema: name) end |
#inspect ⇒ String
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.
41 42 43 |
# File 'lib/hyrax/form_fields.rb', line 41 def inspect "#{self.class}(#{@name})" end |