Class: Treaty::Configuration

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/treaty/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_levelObject (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

#versionObject

Returns the value of attribute version.



7
8
9
# File 'lib/treaty/configuration.rb', line 7

def version
  @version
end