Class: Blacklight::Configuration::NullDisplayField
- Inherits:
-
DisplayField
- Object
- OpenStruct
- OpenStructWithHashAccess
- Field
- DisplayField
- Blacklight::Configuration::NullDisplayField
- Defined in:
- lib/blacklight/configuration/null_display_field.rb
Overview
Returned if no config is defined for a display field in the Blacklight::Configuration
Instance Attribute Summary
Attributes inherited from DisplayField
#accessor, #component, #default, #highlight, #include_in_request, #itemprop, #link_to_facet, #presenter, #separator_options, #solr_params, #values
Attributes inherited from Field
#field, #if, #key, #label, #unless
Instance Method Summary collapse
-
#initialize(field_or_hash = nil) ⇒ NullDisplayField
constructor
A new instance of NullDisplayField.
Methods inherited from Field
#default_label, #display_label, #normalize!, #validate!
Methods inherited from OpenStructWithHashAccess
#deep_dup, #deep_transform_values, #merge, #merge!, #reverse_merge, #select, #sort_by, #sort_by!, #to_h, #try
Constructor Details
#initialize(field_or_hash = nil) ⇒ NullDisplayField
Returns a new instance of NullDisplayField.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/blacklight/configuration/null_display_field.rb', line 6 def initialize(field_or_hash = nil) case field_or_hash when String, Symbol super(field: field_or_hash) else super end normalize! end |