Class: JsonRander::Configuration
- Inherits:
-
Object
- Object
- JsonRander::Configuration
- Defined in:
- lib/json_rander/configuration.rb
Instance Attribute Summary collapse
-
#array_max_length ⇒ Object
Returns the value of attribute array_max_length.
-
#hash_max_length ⇒ Object
Returns the value of attribute hash_max_length.
-
#string_max_length ⇒ Object
Returns the value of attribute string_max_length.
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/json_rander/configuration.rb', line 11 def initialize @string_max_length = 5 @array_max_length = 5 @hash_max_length = 5 end |
Instance Attribute Details
#array_max_length ⇒ Object
Returns the value of attribute array_max_length.
10 11 12 |
# File 'lib/json_rander/configuration.rb', line 10 def array_max_length @array_max_length end |
#hash_max_length ⇒ Object
Returns the value of attribute hash_max_length.
10 11 12 |
# File 'lib/json_rander/configuration.rb', line 10 def hash_max_length @hash_max_length end |
#string_max_length ⇒ Object
Returns the value of attribute string_max_length.
10 11 12 |
# File 'lib/json_rander/configuration.rb', line 10 def string_max_length @string_max_length end |