Class: Treaty::Configuration
- Inherits:
-
Object
- Object
- Treaty::Configuration
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/treaty/configuration.rb
Instance Attribute Summary collapse
-
#attribute_nesting_level ⇒ Object
readonly
Returns the value of attribute attribute_nesting_level.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 14 15 |
# File 'lib/treaty/configuration.rb', line 11 def initialize @version = ->(controller) { controller } @attribute_nesting_level = 5 end |
Instance Attribute Details
#attribute_nesting_level ⇒ Object (readonly)
Returns the value of attribute attribute_nesting_level.
9 10 11 |
# File 'lib/treaty/configuration.rb', line 9 def attribute_nesting_level @attribute_nesting_level end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/treaty/configuration.rb', line 7 def version @version end |