Class: ObjectIdentifier::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/object_identifier/configuration.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.



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

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

Instance Attribute Details

#default_attributesObject

Returns the value of attribute default_attributes.



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

def default_attributes
  @default_attributes
end

#formatter_classObject

Returns the value of attribute formatter_class.



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

def formatter_class
  @formatter_class
end