Class: ObjectIdentifier::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/object_identifier.rb

Overview

ObjectIdentifier::Configuration stores the default configuration options for the ObjectIdentifier gem. Modification of attributes is possible at any time, and values will persist for the duration of the running process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



41
42
43
44
# File 'lib/object_identifier.rb', line 41

def initialize
  @formatter_class = ObjectIdentifier::StringFormatter
  @default_attributes = %i[id]
end

Instance Attribute Details

#default_attributesObject

Returns the value of attribute default_attributes.



38
39
40
# File 'lib/object_identifier.rb', line 38

def default_attributes
  @default_attributes
end

#formatter_classObject

Returns the value of attribute formatter_class.



38
39
40
# File 'lib/object_identifier.rb', line 38

def formatter_class
  @formatter_class
end