Class: ObjectIdentifier::Configuration
- 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
-
#default_attributes ⇒ Object
Returns the value of attribute default_attributes.
-
#formatter_class ⇒ Object
Returns the value of attribute formatter_class.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_attributes ⇒ Object
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_class ⇒ Object
Returns the value of attribute formatter_class.
39 40 41 |
# File 'lib/object_identifier/configuration.rb', line 39 def formatter_class @formatter_class end |