Class: ObjectIdentifier::Identifier
- Defined in:
- lib/object_identifier/identifier.rb
Overview
ObjectIdentifier::Identifier manages construction of identification outputs using the passed in formatter_class.
Class Method Summary collapse
-
.call(objects, *attributes, formatter_class: default_formatter_class, **formatter_options) ⇒ Object
NOTE: ‘kargs` may be specific to the Formatter being called.
- .default_attributes ⇒ Object
- .default_formatter_class ⇒ Object
Class Method Details
.call(objects, *attributes, formatter_class: default_formatter_class, **formatter_options) ⇒ Object
NOTE: ‘kargs` may be specific to the Formatter being called.
7 8 9 10 11 12 13 |
# File 'lib/object_identifier/identifier.rb', line 7 def self.call( objects, *attributes, formatter_class: default_formatter_class, **) formatter_class.(objects, *attributes, **) end |
.default_attributes ⇒ Object
19 20 21 |
# File 'lib/object_identifier/identifier.rb', line 19 def self.default_attributes ObjectIdentifier.configuration.default_attributes end |
.default_formatter_class ⇒ Object
15 16 17 |
# File 'lib/object_identifier/identifier.rb', line 15 def self.default_formatter_class ObjectIdentifier.configuration.formatter_class end |