Class: ObjectIdentifier::Identifier

Inherits:
Object
  • Object
show all
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

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_options)
  formatter_class.(objects, *attributes, **formatter_options)
end

.default_attributesObject



19
20
21
# File 'lib/object_identifier/identifier.rb', line 19

def self.default_attributes
  ObjectIdentifier.configuration.default_attributes
end

.default_formatter_classObject



15
16
17
# File 'lib/object_identifier/identifier.rb', line 15

def self.default_formatter_class
  ObjectIdentifier.configuration.formatter_class
end